Results 1 to 2 of 2
  1. #1

    Member Since
    Jul 29, 2008
    Question Objective-C and the Interface section
    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)


    @interface UIView(UIViewHierarchy)

    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.

  2. #2

    xstep's Avatar
    Member Since
    Jun 25, 2005
    On the road
    2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Objective-C help
    By bikka in forum macOS - Development and Darwin
    Replies: 22
    Last Post: 05-27-2014, 02:56 PM
  2. Need help in objective C
    By prateek.chaubey in forum iOS Development
    Replies: 3
    Last Post: 09-23-2011, 09:12 PM
  3. Objective-C
    By eddielee in forum macOS - Development and Darwin
    Replies: 2
    Last Post: 02-02-2011, 12:27 PM
  4. Is Objective For me?
    By Estanislao in forum macOS - Apps and Games
    Replies: 1
    Last Post: 05-26-2009, 04:13 AM
  5. Objective-C
    By AstralZenith in forum macOS - Development and Darwin
    Replies: 13
    Last Post: 03-09-2003, 10:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts