Re: Problem with missing symbol
Re: Problem with missing symbol
- Subject: Re: Problem with missing symbol
- From: Lee Ann Rucker <email@hidden>
- Date: Thu, 10 Dec 2009 14:45:33 -0800
On Dec 10, 2009, at 1:24 PM, Emmanuel Pinault wrote:
Have you tried using [NSStatusItem setView:]?
setView is for custom view.. Because if I dont do a setView, the
view Method return nil so far. And looking at the doc it mentions
that it is for custom view.
I am looking at something similar called MAAAttachedWindow class
made by someone else. Seems like the way around is to actually use a
custom view in a way. The developer seem to use the NSScreen and
some other logic to figure out based on where you click (so on the
status item in the bar) and get the exact point of the click. Then
he calculate where his custom view and window should be displayed.
Right. "Custom view" just means a view where you put your own UI; it
doesn't have to be a subclass of NSView. It would be a lot easier
than creating a window - which contains an NSView, if it's Cocoa - and
working out where to show it; all that work is done for you.
Thanks
Emmanuel
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden