Re: nstoolbaritem coordinates?
Re: nstoolbaritem coordinates?
- Subject: Re: nstoolbaritem coordinates?
- From: j o a r <email@hidden>
- Date: Fri, 19 Aug 2005 17:22:23 +0200
On 19 aug 2005, at 17.17, Luc Vandal wrote:
I'm creating some custom nstoolbaritem with a view attached so that
I can be notified when the mouse is over a particular item. The
problem that I have right now is that I can't find how to get the
coordinates (rect or frame) for a toolbar item so how can I know
where to initialize the view?
Here's the code that I'm using now. It works but the frame does not
correspond to the toolbar item since I don't know how to get it:
If it's an item with a flexible width I would suggest that you set
the initial size to be the minimum size that you allow for that
toolbar item. Once it's inserted in the toolbar it will be resized to
the appropriate size for the current window by the toolbar, so that's
not something you need to worry about.
If it's not a flexible-size item, then you don't have a problem - as
the size of the view governs the size of the toolbar item, not the
other way around.
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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