Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 22, 2010, 11:21 AM   #1
ulbador
macrumors 68000
 
ulbador's Avatar
 
Join Date: Feb 2010
Question about a new SplitView Application

When you create a new Split-View Application in XCode, I am trying to get a handle on something.

I am completely not understanding a bit in the DetailViewController.h/.m.

Of course in the .h file, it has the expected:

@interface DetailViewController : UIViewController ......


But in the .m file it also has:

@interface DetailViewController ()

and then another method and property declaration. I have never seen code like this in the .m file.

I can't get my brain around it...
ulbador is offline   0 Reply With Quote
Old Jul 22, 2010, 11:27 AM   #2
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
It's an anonymous category allowing for a truly private interface to be added. Basically it allows that property and method to exist and be visible to all methods in the class but not visible outside the class as they are not part of the public .h file.
robbieduncan is offline   0 Reply With Quote
Old Jul 22, 2010, 01:00 PM   #3
ulbador
Thread Starter
macrumors 68000
 
ulbador's Avatar
 
Join Date: Feb 2010
Quote:
Originally Posted by robbieduncan View Post
It's an anonymous category allowing for a truly private interface to be added. Basically it allows that property and method to exist and be visible to all methods in the class but not visible outside the class as they are not part of the public .h file.
Ahh, that makes total sense! I suppose something like this would be required since objective C seems to lack the ability to make private methods (in the traditional sense)

Thanks!
ulbador is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
A question about application switcher :) wixtren Mac Applications and Mac App Store 2 Apr 23, 2013 08:53 PM
Question about application plans on iPhone 4S mon-pc iOS 6 4 Jan 26, 2013 08:36 AM
Splitview for iPad Safari? CavemanUK Web Design and Development 1 Jan 26, 2013 06:55 AM
Application folder question looxlmc iMac 13 Sep 10, 2012 03:56 PM
SplitView Pass from Master to Detail Issue newtoiphonesdk iPhone/iPad Programming 1 Jul 1, 2012 01:51 AM

Forum Jump

All times are GMT -5. The time now is 10:29 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC