Re: NSArrayController and bindings
Re: NSArrayController and bindings
- Subject: Re: NSArrayController and bindings
- From: Rob Borsuk <email@hidden>
- Date: Tue, 24 Feb 2004 15:49:51 -0500
On Feb 24, 2004, at 3:29 PM, mmalcolm crawford wrote:
I would like to be able to count the dictionary objects but it
doesn't seem that NSArrayController (though using 'Array' in the
name) has a 'count' method.
Use the array operator @count.
When I assign the arraycontroller to an IBOutlet and then do a count I
get:
-[NSArrayController count]: selector not recognized
I'm misunderstanding, aren't I? Do I need to somehow bind the
arraycontroller to FilesOwner versus using an IBOutlet? Maybe using
contentArray?
I would like to be able to write the "array" out as a text file
(viola - plist) but it seems that it likes to save as a encoded
format.
In the most likely scenario, the NSController is simply managing the
*display* of the array, the array itself is still managed by a classic
custom "controller" which should be responsible for saving and
loading...
So would I subclass Arraycontroller versus binding to a NSDocument to
gain this functionality?
mmalc
Thanks
Rob
Rob Borsuk
email: email@hidden
Colourfull Creations
Web:
http://www.colourfull.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.