Accessing NSArrayController's data from PB code in a non-NSDocument Cocoa app.
Accessing NSArrayController's data from PB code in a non-NSDocument Cocoa app.
- Subject: Accessing NSArrayController's data from PB code in a non-NSDocument Cocoa app.
- From: email@hidden
- Date: Thu, 22 Jul 2004 23:08:06 -0400
Scenario: A simple Book model database consisting of a book's title,
author & memo. I'm using a non-NSDocument Cocoa application paradigm.
I've created a working NSWindow controlled by a customed
NSWindowController called from the Main Controller.
This window (Nib) contains a NSTableView <--> NSArrayController <--
Book Model
I got the front-end (Interface Builder) to work okay. But I can't
figure out how to access the NSArrayController's data from the back end
(PB code).
I want to get access to the data (array of 'Book' models) to work
with it and manually save it to disk.
I can access the customized NSWindowController via it's instance
variable: 'bookWindowController' (and hence the NSWindow). But there's
no instance variable of the NSArrayController created within the
Interface Controller.
I know I'm missing something simple here.
Do I do something like 'IBOutet NSArrayController'?
Any ideas?
Thanks!
Regards,
Ric.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.