Re: Typo In NSPersistentDocument Core Data Tutorial?
Re: Typo In NSPersistentDocument Core Data Tutorial?
- Subject: Re: Typo In NSPersistentDocument Core Data Tutorial?
- From: mmalcolm crawford <email@hidden>
- Date: Tue, 14 Jun 2005 17:41:36 -0700
On Jun 14, 2005, at 4:25 PM, Thaddeus Cooper wrote:
NSArray *selectedEmployees = [employeeTableController
selectedObjects];
unsigned i, count = [selectedObjects count];
// more code follows...
When you compile this you get a selectedObjects undeclared error,
probably because it should be selectedEmployees instead (which works)
This seems unlikely. employeeTableController is declared as an
NSArrayController:
IBOutlet NSArrayController *employeeTableController;
(<http://developer.apple.com/documentation/Cocoa/Conceptual/
NSPersistentDocumentTutorial/05_CopyAndPaste/chapter_6_section_3.html>)
which does implement selectedObjects (<http://developer.apple.com/
documentation/Cocoa/Reference/ApplicationKit/ObjC_classic/Classes/
NSArrayController.html#//apple_ref/doc/uid/20002042-BAJECHFD>).
selectedEmployees is not defined as a method, or even a property, of
any of the classes or entities, so I'm not sure why the compiler
would not give an error. Where have you implemented a
selectedEmployees method? Did you declare employeeTableController
correctly?
mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden