[Cocoa-Java] Seeking some explanations around an NotSerializableException
[Cocoa-Java] Seeking some explanations around an NotSerializableException
- Subject: [Cocoa-Java] Seeking some explanations around an NotSerializableException
- From: Frédéric BLANC <email@hidden>
- Date: Sun, 23 Jan 2005 21:12:09 +0100
Hi!
In a Java-based Cocoa application, I now receive a
java.io.NotSerializableException at runtime when invoking the standard
"Customize Toolbar…" action :( ! I've simply set my toolbar controller
as the delegate of an NSPopUpButton-based toolbar item's menu… Is
there someone here who can help?
For some additional details, I've had to set this delegate for this
NSPopUpButton's menu to be handled by the NSMenu's menuNeedsUpdate()
method.
FYI, my goal (achieved, but with this exception as a side-effect :( !)
is to update the content of a toolbar item's menu according to a
selection in a table view.
Everything's okay… but I've now lost the ability to customize the
toolbar (which worked flawlessly until this change…) And removing this
delegate from Interface Builder restores the standard invocation of
the "Customize Toolbar…" sheet.
Thanks for any help to solve this issue, and to make me understand
what "happens" (Why serialization is invoked for this action? And if
serialization is indeed needed, why setting this toolbar controller as
a delegate broke its ability to serialize itself? etc.)
Note: A sample project can be provided if needed.
Bye,
— Frédéric BLANC (email@hidden)
_______________________________________________
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