Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mikezang

macrumors 6502a
Original poster
May 22, 2010
931
38
Tokyo, Japan
When we create a new project with SplitViewController template, there is some code as below in DetailViewController.m
Code:
@interface DetailViewController ()
@property (nonatomic, retain) UIPopoverController *popoverController;
- (void)configureView;
@end

I want to know why this property is not defined in DetailViewController.h.
 
Apple intend it to be private to that class: no external instance should be setting/getting it. Not sure why Apple have made that decision but there you go...
 
That is the standard idiom for making methods private, since Objective-C doesn't have a private keyword that works for methods in the class declaration.

This is a class extension. See the Objective-C 2.0 Language guide for more on class extensions.

And, as robbie mentions, the intention is to make the popover property and the configureView method private.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.