Re: NSArrayController - Mutability lost?
Re: NSArrayController - Mutability lost?
- Subject: Re: NSArrayController - Mutability lost?
- From: Diggory Laycock <email@hidden>
- Date: Sat, 16 Apr 2005 18:32:12 +0100
On 16 Apr 2005, at 5:01 pm, mmalcolm crawford wrote:
On Apr 16, 2005, at 6:50 AM, Diggory Laycock wrote:
I have an class which is a preference pane's main class - let's
call it MyPrefPane. It has an NSMutableArray called 'tickets'.
I also have an NSArrayController, whose contentArray is bound to
the tickets array of the MyPrefPane class.
Is the array at some stage retrieved from user defaults?
See <http://homepage.mac.com/mmalc/CocoaExamples/controllers.html>
-> NSUserDefaultsController
-> Arrays
mmalc
Hmm - no, the array isn't touched by UserDefaults at all - I read the
thread on that - interesting, and similar - but we're just using an
ArrayController here.
Perhaps Uli's vauleTransformer from the example you linked could be
useful here - to turn the Array back into into a MutableArray.
I still think it's odd that the controller appears to be altering the
class of my model's property.
Diggory Laycock
-----------------------
http://www.monkeyfood.com
_______________________________________________
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