New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Objective-C and the Interface section


Post Reply New Thread Subscribe

 
Thread Tools
bmahf

 
Member Since: Jul 29, 2008
Posts: 1
bmahf is on a distinguished road

bmahf is offline
Hi all,

Please don't blow my head off if this is the wrong place to ask this question, but I haven't found a better place yet. If it's wrong, please let me know where I can repost this for best results. Thanks.

So I am learning Objective-C, and find that a lot of questions are easily resolved online or in a book somewhere, but I took a look inside of UIView.h and saw the sections:

@interface UIView(UIViewGeometry)
...
@end

and

@interface UIView(UIViewHierarchy)
...
@end

and don't really know for sure what these are. I have looked everywhere to see if I can find an explanation of the @interface declaration that uses open and clode parens, and can't find any discussion on that whatsoever. Can someone explain this to me?

Just curiosity at this point, but I would like to know in case I ever want to use this for some reason.
Thanks...
Bruce
QUOTE Thanks
xstep

 
xstep's Avatar
 
Member Since: Jun 25, 2005
Location: On the road
Posts: 3,231
xstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to all
Mac Specs: 2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid

xstep is offline
You want to learn about Categories. I don't think we can add anything beyond the below links. The short answer is you use categories to add methods to an existing class where you don't need to add variables. This avoids the expense of subclassing where it isn't needed.

Cocoadevcentral's Learn Objective-C.

Apple's Introduction to The Objective-C Programming Language.

CameraTime - Time lapse photography for novice and advanced users.

When asking questions, post the version of your software. You'll receive better answers.

Please post your results to the thread as it is good feedback.
QUOTE Thanks

Post Reply New Thread Subscribe


« Is implementing autorelease code in constructor a good idea ? | Need Help Opening A Pages '09 File... »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

All times are GMT -4. The time now is 11:51 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?