Re: CORE DATA: setImage (transient) and setImageData (binary) accessors don't fire.
Re: CORE DATA: setImage (transient) and setImageData (binary) accessors don't fire.
- Subject: Re: CORE DATA: setImage (transient) and setImageData (binary) accessors don't fire.
- From: "Frederick C. Lee" <email@hidden>
- Date: Sun, 15 Jan 2006 13:49:50 -0800
I checked the code and re-affirmed that the Map entity is correctly
defined by the 'MapManagedObject'
subclass. The other entities are 'NSManagedObjects'.
The 'MapManagedObject' has the added 'setImage' and 'setImageData'
accessors.
Just for the sake of confirmation of my problem, I changed
'imageData' datatype from binary to string,
disconnected the NSImageView and placed a NSTextField in the GUI
and bind it to 'imageData'.
Sure enough, 'setImageData' fired.
When I return to the original configuration, 'setImageData' did NOT
Fire.
Then I changed the binding of the NSImageView from 'view' to
'data'. And bind it directly to
'imageData' binary (vs 'image' transient). Again, 'setImage' and
'setImageData' did NOT fire.
I created a simpler test project, using the single NSObjectController
bind to the AppDelegate.
The GUI contained 1) NSImageView and 2) NSTextField.
The single "Map" entity contained name (string) {inherited from an
abstract entity} , imageData (binary)
and image(transient) attributes.
[AppDelegate] ---> [NSObjectController] ---> NSImageView GUI. *okay*
The 'Map' datatype was the same as mentioned above (with the 'set'
accessors).
This time the image I/O *works*: 'MapManagedObject' datatype is *okay*.
Which means that there's something wrong with the following
controller setup...
...the set<binary> object fail here:
[AppDelegate] -->> [RegionArrayController -->> [MapArrayController]
--->> NSImageView GUI. *problem*
...appears to be a bug: too complicated for binding.
_______________________________________________
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