• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Accessing NSArrayController's data from PB code in a non-NSDocument Cocoa app.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: XCode UML
  • Next by Date: Re: Preprocess
  • Previous by thread: Re: XCode UML
  • Next by thread: Debugger can't see fields of instance -- Xcode barfs to stderr
  • Index(es):
    • Date
    • Thread