RE: Safari-like padlock button in window title bar
RE: Safari-like padlock button in window title bar
- Subject: RE: Safari-like padlock button in window title bar
- From: Jim Matthews <email@hidden>
- Date: Fri, 23 May 2008 22:31:12 -0400
At 8:08 PM -0400 5/20/08, Gary L. Wade wrote:
I'm planning on doing something like this myself with one of my
projects, and the way I plan on trying it out is by using:
-(NSButton *)standardWindowButton:(NSWindowButton)b;
for each NSWindowButton of the NSWindow, find a reasonable visual
gap to the left/right of one of the buttons, and then add my own to
their superview.
I wasn't sure I could do this at first, because my window (a modal
dialog) does not have close, minimize, or zoom buttons, or any other
button that standardWindowButton: can return. I worked around that
by temporarily creating a toolbar, getting the location and superview
of the toolbar button, and then removing the toolbar.
Thanks for the help,
--
Jim Matthews
Fetch Softworks
http://fetchsoftworks.com
_______________________________________________
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