Am 27.11.2011 um 11:04 schrieb Beatrix Willius:
>
> No, doesn't do anything for me. If I modify the constructor on myNSToolbarMBS
>
> TestItem = new MyNSToolbarItemMBS("test")
> TestItem.label = "Test"
> TestItem.Enabled = False
>
> I get no change in behavior.
Looks like I have to add a validate event for this.
And if you don't have code there, I'll simply return Enabled value and this
gives expected behavior.
> Was just trying to be helpful. I hate not working examples.
Well, I fixed it here already. I usually check all the examples just before a
release to verify they compile.
>> Use CustomNSToolbarItemMBS class and make a subclass. Inside use the Action
>> event.
>
> Ahem, communication between class and window is NOT having the class talking
> directly to the window.
I'm not Real Software. I can't add events to window class.
> Take the method changeAttributes in the example NSFontPanel. This is as
> Non-OOP as you can get.
I know. Still the font panel is not perfect. Especially in carbon applications.
Greetings
Christian
--
See you in Orlando, Florida for Real World 2012
More details and registration here:
http://www.realsoftware.com/community/realworld.php
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info