• 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
Re: Random image problem has me stumped :(
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Random image problem has me stumped :(


  • Subject: Re: Random image problem has me stumped :(
  • From: "John C. Randolph" <email@hidden>
  • Date: Wed, 23 Mar 2005 14:54:30 -0800


On Mar 23, 2005, at 1:28 PM, Serge Meynard wrote:
 But if I run the test code below...

    [cachedImage lockFocus];
    NSBitmapImageRep* bmrep = [[NSBitmapImageRep alloc] initWithFocusedViewRect:NSMakeRect(0, 0, width, height)];

...the returned bmrep is nil.

Probably because there's no view that has focus.  Remember that NSImage is not an NSView subclass.

-jcr


John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html



 _______________________________________________
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: Random image problem has me stumped :(
      • From: Serge Meynard <email@hidden>
References: 
 >Random image problem has me stumped :( (From: Serge Meynard <email@hidden>)

  • Prev by Date: To Framework or to Dylib?
  • Next by Date: Re: [OT] Job hunting
  • Previous by thread: Random image problem has me stumped :(
  • Next by thread: Re: Random image problem has me stumped :(
  • Index(es):
    • Date
    • Thread