On May 4, 2011, at 9:00 AM, Steve Christensen wrote: > I'm working on an app that uses a tab bar. I created a new nib to set up a > view+controller and added a new tab item to the main nib that references the > controller and the controller's nib, plus I filled in some basic > functionality in the view controller. Since it's relevant, the controller's > IBOutlets are > > IBOutlet MyTableView* _resultsTable; > IBOutlet UIActivityIndicatorView* _searchActivityIndicator; > IBOutlet UISearchBar* _searchBar; >
First step: Don't prepend your ivars with underscores. From <http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CodingGuidelines/Articles/NamingBasics.html>, and I quote: " • Avoid the use of the underscore character as a prefix meaning private, especially in methods. Apple reserves the use of this convention. Use by third parties could result in name-space collisions; they might unwittingly override an existing private method with one of their own, with disastrous consequence." You may be seeing one of those "disastrous consequences" Glenn Andreas [email protected] The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
