• 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
NSDrawWindowBackground bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSDrawWindowBackground bug


  • Subject: NSDrawWindowBackground bug
  • From: Guy English <email@hidden>
  • Date: Thu, 2 Feb 2006 20:49:28 -0500

Hi guys,

There's a bug when calling NSDrawWindowBackground in a view in a borderless window. You'll get an exception: -[NSNextStepFrame contentAlpha]: selector not recognized. The workaround is to do:

[[NSColor windowBackgroundColor] set];
NSRectFill( rect );

I mention it because I posted some code here earlier this week ( a spotlight-ish menu thing ) that used NSDrawWindowBackground. When you put that view in a borderless window ( to mimic a menu ) you'll hit this bug. Dropping in the work around above works fine though.

( ooh, fancy radar link for those it might mean something to: rdar:// problem/4431836 )

Take care,
Guy
_______________________________________________
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: Re: Core Data: updating a key dependent on a to-many relationship?
  • Next by Date: NSTreeController and dissimilar entity problems
  • Previous by thread: Re: Core Data: updating a key dependent on a to-many relationship?
  • Next by thread: NSTreeController and dissimilar entity problems
  • Index(es):
    • Date
    • Thread