• 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: NSOutlineView subclass
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineView subclass


  • Subject: Re: NSOutlineView subclass
  • From: Eric Forget <email@hidden>
  • Date: Mon, 29 Mar 2004 15:02:42 -0500

Hi Marca,

First, do not forget that iTunes is a Carbon application. So it is somewhat
"normal" that you do not have, by default, exactly the same look an feel
with a Cocoa application. Another thing to not forget, is that iTunes was
first release on Mac OS 9, before the Aqua look. So, some of their "custom"
will probably disappear over the time. It is not always wishful to try to
imitate those non standard behavior...

For dealing with the disclosure triangle take a look at <
HIToolbox/Appearance.h>. This is the low-level Carbon API to draw and
manipulate control parts. It is your best chance to have the right behavior
with the right look, even if the with future changes made by the OS.

Eric

> Since I draw the entire row by myself, using the drawRow:(int)rowIndex
> clipRect:(NSRect)clip event, I had to take care of disclosure triangle
> drawing. Is there any other method ? If not, how can I provide the user
> with some sort of feedback when he/she clicks on the disclosure
> triangle (i.e. make it darker on mousedown) ? I've tried the
> NSOUtlineView's collapsing and expanding delegates but all of them
> fires at mouseup only and therefore cannot be used to draw the
> disclosure rect in another state. If there's an event that fires on
> mousedown, how do I drawn in the desired row ?

___________________________________________________________________

Eric Forget Cafederic
email@hidden <http://www.cafederic.com/>

Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684>
_______________________________________________
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.


References: 
 >NSOutlineView subclass (From: marca <email@hidden>)

  • Prev by Date: Re: returning nil on initialization
  • Next by Date: Re: [ANN] Shovel - Third-Party "Software Update"
  • Previous by thread: NSOutlineView subclass
  • Next by thread: drawrect not being called after a random time in NSOpenGLView
  • Index(es):
    • Date
    • Thread