• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSWindow styleMask modification
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSWindow styleMask modification


  • Subject: NSWindow styleMask modification
  • From: Pierre Chatel <email@hidden>
  • Date: Mon, 9 May 2005 13:27:17 -0300

Hi,

i'm writing a small APE haxie to do basic window style modification.
It's working by patching the initWithContenRect initialization method of NSWindow. I catch the styleMask parameter and modify it on the fly then, call the original initWithContentRect method. The problem is that it is to soon in the initialization process to be able to perform attributes test on the modified window (like, "does it have a toolbar ?" for instance). And since, the styleMask can't be changed after
initialization, I'm stuck with a big problem !


So does anybody have a idea how i could perform such a test in the iniWithContentRect method ?
An other solution would be to create a new window when the setToolbar method is called. Then swap it with the original instance. But i think it's impossible since it would need to inherit the content, ref counting attributes and memory address of the original window object.


Pierre _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Prev by Date: OT-how to change Mail word-wrap?
  • Next by Date: Re: Help not working using key equivalent
  • Previous by thread: [Moderator] EOT (Re: OT-how to change Mail word-wrap?)
  • Next by thread: Tiger: NSAttributedString from WebArchive
  • Index(es):
    • Date
    • Thread