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 (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/lrucker%40vmware.com
This email sent to lruc...@vmware.com
_______________________________________________
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