Re: +poseAsClass and instance variables
Re: +poseAsClass and instance variables
- Subject: Re: +poseAsClass and instance variables
- From: Dennis De Mars <email@hidden>
- Date: Sat, 23 Feb 2002 11:38:17 -0800
Clearly one thing to try is NSBorderlessWindowMask and then just fill in
the border yourself, treating part of your content area as the border
(thereby simulating a title bar). The Cocoa documentation says
NSBorderlessWindowMask is "Useful only for display or caching purposes,"
but one could just ignore that.
I think this might end up being more work than appears at first sight,
though, because you then have to worry about all of the automatic
behavior that happens when the title bar is drawn, is clicked in, etc.
And there might be things the window manager is doing with the frames
that your app never even knows about because it doesn't affect the
content area. Even so, this may be the way they do it in Stickies. Of
course, if there is a private API to help handle the border and clue you
in to the window border events.
- Dennis D.
On Saturday, February 23, 2002, at 11:14 AM, Finlay Dobbie wrote:
>
>
On Saturday, February 23, 2002, at 07:03 PM, Dennis De Mars wrote:
>
>
> Note, Stickies is also a Cocoa app, I believe, and it's using some
>
> kind of custom window definition.
>
>
Uh, it's probably just an NSBorderlessWindowMask filled with a yellow
>
rect a la RoundTransparentWindow. I think from there you could add the
>
standard controls programmatically (+[NSThemeButton newCloseButton] or
>
something, IIRC -- yes, this is a private API).
>
>
-- Finlay
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.