• 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
Releasing an NSWindow without destroying the underlying Carbon windowRef?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Releasing an NSWindow without destroying the underlying Carbon windowRef?


  • Subject: Releasing an NSWindow without destroying the underlying Carbon windowRef?
  • From: Jonathan del Strother <email@hidden>
  • Date: Thu, 5 May 2005 18:30:09 +0100

I'm creating an NSWindow using initWithWindowRef, and passing in the windowRef of the iTunes window.

This is so I can query some properties of the screen that the iTunes window is on from my Cocoa code.

Once I've finished with it, I need to release it, but doing so appears to destroy the iTunes window in a rather nasty crash.
I've tried just not releasing it - However, I'm having some odd problem where iTunes stops responding to button presses, and I believe that this is the cause.


How can I relinquish Cocoa's hold on the window without actually destroying it?

Jon
_______________________________________________
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


  • Follow-Ups:
    • Re: Releasing an NSWindow without destroying the underlying Carbon windowRef?
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: Re: Obtaining a reference to an entity's context's owner
  • Next by Date: Re: Obtaining a reference to an entity's context's owner
  • Previous by thread: Re: Running AppleScript without Window Server context
  • Next by thread: Re: Releasing an NSWindow without destroying the underlying Carbon windowRef?
  • Index(es):
    • Date
    • Thread