On Dec 10, 2009, at 2:45 PM, Lee Ann Rucker wrote:

> 
> 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.
> 

Sounds good. I ll give it a try and see what happens :)
> 
>> 
>> Thanks
>> 
>> Emmanuel
> 

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to