• 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
Obtaining and releasing a Carbon NSWindow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Obtaining and releasing a Carbon NSWindow


  • Subject: Obtaining and releasing a Carbon NSWindow
  • From: Jonathan del Strother <email@hidden>
  • Date: Sat, 26 Jun 2004 18:04:01 +0100

I'm trying to find which screen iTunes is running on from within my
Cocoa app. In doing so, I do this:

NSWindow* iTunesWindow = [[NSWindow alloc]
initWithWindowRef:visData->iTunesWindow];

iTunesWindow is a WindowRef.



This seems to have some unfortunate side effects - parts of the iTunes
window turn white, and I'm guessing that I've locked iTunes out of its
own window control. I also get a list of _NSAutoreleaseNoPool errors,
despite the relevant code being surrounded by an NSAutoReleasePool
block.

I can't do [iTunesWindow release], either - that seems to destroy the
iTunes window...

How can I release my lock on the iTunes window without actually
destroying it?


Thanks,
Jon
_______________________________________________
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.


  • Prev by Date: Using bindings
  • Next by Date: Re: URL formatting in NSAttributedString
  • Previous by thread: Using bindings
  • Next by thread: displaying a sheet with new document
  • Index(es):
    • Date
    • Thread