• 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
NSTableView drawing a background image...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView drawing a background image...


  • Subject: NSTableView drawing a background image...
  • From: Julian <email@hidden>
  • Date: Wed, 1 Jun 2005 21:27:20 -0400

Hi,
A project I am working on needs a branding glyph drawn inside an NSTableView(lower right corner), currently I am doing it like so...

- (void)highlightSelectionInClipRect:(NSRect)rect {

    [_image drawAtPoint:NSMakePoint(rect.size.width - [_image size].width, rect.size.height - [_image size].height) 
        fromRect:NSMakeRect(rect.origin.x, rect.origin.y,[_image size].width,[_image size].height) 
            operation:NSCompositeSourceOver fraction:1.0];

//I draw a special highlight here etc...


So far this works out ok, but I am just looking for a few opinions, is this the correct place for this action, and does my drawing code look correct?

Thanks!
~J
 _______________________________________________
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: NSTableView drawing a background image...(answer my own question)
      • From: Julian <email@hidden>
  • Prev by Date: Setting the "Open with" attribute on a file
  • Next by Date: Re: NSTableView drawing a background image...(answer my own question)
  • Previous by thread: Re: Setting the "Open with" attribute on a file
  • Next by thread: Re: NSTableView drawing a background image...(answer my own question)
  • Index(es):
    • Date
    • Thread