Re: Java and NSController
Re: Java and NSController
- Subject: Re: Java and NSController
- From: Brian Hannan <email@hidden>
- Date: Sun, 9 Nov 2003 01:20:30 -0800
Okay, on further reading I think I just answered my own question. Java
can't support KVO operations like
triggerChangeNotificationsForDependentKey because you'd need to mess
with method dispatch to a Java object. And while Apple does make the
MacOS X Java VM, I can see why they don't add it. It's not part of the
Java object model. The only way to get notification is outside the
dispatch model, a la NSNotificationCenter.
Apple does and can however control the Objective-C object model and
method dispatch, intercepting dispatches and providing notification to
other sources through observers.
If I'm totally off base, please let me know.
Thanks again.
On Nov 8, 2003, at 11:46 PM, Brian Hannan wrote:
Is it just me, or is the NSController architecture not where the
Objective-C version is? Seeing as how the NSController example docs
which come shipped with Xcode are just plain wrong, I have a feeling
it was rushed out the door regardless.
I'm unable to find Java equivalents of
triggerChangeNotificationsForDependentKey, willChangeValueForKey,
didChangeValueForKey. As a result, I'm unable to make all the magic
and benefits of NSController work. Granted, I'm new to Cocoa so I
might be missing something obvious. If I am, please clue me in.
Seeing as Apple has the NSController classes there in Java, perhaps it
will be working more in the next release.
Thanks for any help.
--
Brian Hannan
Chief Admiral of Uncle Jam's Navy
"One nation under a groove, gettin' down just for the FUNK of it."
_______________________________________________
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.
--
Brian Hannan
Chief Admiral of Uncle Jam's Navy
"One nation under a groove, gettin' down just for the FUNK of it."
_______________________________________________
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.