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 11:48:02 -0800
On Dec 10, 2009, at 10:39 AM, Emmanuel Pinault wrote:
I am trying to create a small item in the status bar, which when I
click, I can show at a glance a small calendar... kind of like how
Gnome does it. Really convenient and better than loading the full
dashboard at times.. Anyway I using rubycocoa and this is the code
I am trying to have to work.
I should clarify that all I am trying to do is to get the initial
position of the new item on the status bar to position a small
window (like a contextual menu) right under that icon when clicking
on it.
Have you tried using [NSStatusItem setView:]?
IThe hackFrame method was returning the result of a the [ _fWindow
Frame] method. But if I cannot access the _fWindow since it is
private, not sure how else I can
I will look at those methods then. But this is what I am up to
(using RubyCocoa)
statusbar = NSStatusBar.systemStatusBar
@item = statusbar.statusItemWithLength(NSVariableStatusItemLength)
image = NSImage.alloc.initWithContentsOfFile("cal.png")
@item.setImage(image)
@item.setAction :clicked
calendarController =
CalendarController.alloc.initWithPosition(@item.hackFrame) <== I
need the frame here
-lance
_______________________________________________
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
_______________________________________________
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