Re: Getting a NSToolbar's window?
Re: Getting a NSToolbar's window?
- Subject: Re: Getting a NSToolbar's window?
- From: j o a r <email@hidden>
- Date: Fri, 18 Apr 2003 10:56:36 +0200
Why do you need to access anything from the toolbar, or did you mean
from a toolbar item?
It sounds like you have a problem that could be solved by re-thinking
your design...
Could you tell us a litte bit more of what you are trying to do?
If you do have legit reasons to need a reference to the window, you
could always ask the toolbar delegate for it - or in a worst case
scenario, subclass NSToolbar and give it an instance variable for the
window that you populate when you set up the toolbar from the window
controller.
j o a r
On Friday, Apr 18, 2003, at 06:16 Europe/Stockholm, Colin Cornaby wrote:
The subject says it all. I have a window. I have a NSToolbar. The
toolbar needs to call a method from the window. But, I will have
multiple instances of the window so I can't simply link via IB. Is
there a way to return the window a toolbar is in?
_______________________________________________
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.