Thanks Paul, that was helpful. I am able to add the close button to my window using standardWindowButton, but facing some refreshing problems.
First time when I load the window and add button to it, close button is able to draw itself properly. But if i close this window and reopen it again, then close button is not refreshing itself. When i move mouse on this button and click it, redraw happens and it draws fine after that. Any pointers on how this refreshing issue can be fixed? Thanks for help. Cheers! On Thu, May 6, 2010 at 8:11 PM, Paul Sanders <p.sand...@alpinesoft.co.uk>wrote: > > Already tried NSBorderlessWindowMask, but that doesn't supports the > close > > button functionality, which is required in my case. > > You can create a close button via +[NSWindow > standardWindowButton:forStyleMask:] > > I think NSBorderlessWindowMask is the only game in town here. > > Paul Sanders. > _______________________________________________ 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