XCode Bindings
XCode Bindings
- Subject: XCode Bindings
- From: Yann Bizeul <email@hidden>
- Date: Sun, 26 Oct 2003 00:55:16 +0200
Hi,
Bindings seem to be a really, really huge thing that will avoid lot of
lines of code. So, I'm trying to stress it a bit, here is what I want
to do :
I have an object, say a car, that as lot of properties. My
application's preferences will manage cars, so I want to have a
tableview to the left, with add and remove buttons below, and many text
field, check boxes, radios, popup menus that show current selected
car's properties.
Now, I have no problems managing those things in a NSArrayController,
running unitialized when opening this window. I can do all I want.
But I want more. I want to get objects for NSUserDefaults. And that
does not work. My object is NSCoding complient, and has initWithCoder
and encodeWithCoder methods implemented.
But If I bind NSArrayController's "contentArray" to
sharedUserDefaults/values/cars with value transformer
NSUnarchiveFromData, all I get running the application and trying to
add a car is :
2003-10-26 00:53:33.228 SmartIRC[4016] *** -[NSKeyValueSlowMutableArray
bytes]: selector not recognized
2003-10-26 00:53:33.237 SmartIRC[4016] *** -[NSKeyValueSlowMutableArray
bytes]: selector not recognized
I hope what I want to do is not impossible, that should be a almost 0
lines coding way to do fastidious things.
By the way, congratulations to Developer tools coding team at Apple.
That's a great work, I really love XCode, keep the good work !
--
Yann Bizeul
TYNSOE.ORG -
http://www.tynsoe.org/
Site technique consacri ` MacOS X
Projets :
http://projects.tynsoe.org/
_______________________________________________
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.