Re: [Cocoa-Java] Seeking some explanations around an NotSerializableException
Re: [Cocoa-Java] Seeking some explanations around an NotSerializableException
- Subject: Re: [Cocoa-Java] Seeking some explanations around an NotSerializableException
- From: Frédéric BLANC <email@hidden>
- Date: Tue, 25 Jan 2005 21:24:05 +0100
<Sample Xcode project (only 17k) to illustrate my issue:
http://blanc.free.fr/pub/temp/NotSerializableException.zip>
===
> For a long shot you could try serialver.
Thanks Michael for the pointer; I never heard about it, and I'll read
some documentation around. Alas, I may then come back to you with some
questions ;) !
But for the time being, as promised, I'm back with a *clean* Xcode
project for you to "play" with my issue in real time ;) ! So, go and
grab it at: http://blanc.free.fr/pub/temp/NotSerializableException.zip
(It only weights 17k.)
So, here are some last minute notes:
. I've commented the "implements java.io.Serializable" part (in the
ToolbarController class declaration) for you to see the current state
(NotSerializableException log); feel free to uncomment this part to
see the signal 10 error :( !
. The delegate is currently set through IB in ToolbarItemView.nib
(I've tried the programmatic way with the same, hmm... results). Feel
free to disconnect it by using the outline view (it's not accessible
through the icon view) to see my example project is perfectly working
w/o this needed delegate (but, obviously, without the "validation" I'm
trying to add to the pull-down menu items...)
. This delegate is needed to apply some contextual "validation";
currently, the menuNeedsUpdate() method does a very silly "validation"
(it statically checks the 1st menu item), but it's for example
purposes only!
. At last, the toolbar item I'm using is custom (instead of simply use
an NSPopUpButton) since I've needed to add contextual validation on it
(enabling/disabling upon selection of elements in a table view); in my
example project, you'll see that the ToolbarItem class is really
simple, and the validation it's adding is dumb (always enable the
item!)
Thanks to all of you for your feedback. Now that the example project
is delivered (please try it ;) !), I'm investigating your last advice.
Don't hesitate to ask questions if needed. Thx.
Note: And sorry for the cross-posting, it won't happen anymore now
that my sample project is provided. I'll now reply to the kind
messages you send me by only adding the list from which the answer is
sent. Sorry for the inconvenience. And thanks a lot for your help.
— 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