• 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 : Incorrect Drag and Drop drawing?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineView : Incorrect Drag and Drop drawing?


  • Subject: Re: NSOutlineView : Incorrect Drag and Drop drawing?
  • From: Corbin Dunn <email@hidden>
  • Date: Mon, 23 Feb 2009 09:16:53 -0800


On Feb 21, 2009, at 3:08 PM, Iceberg-Dev wrote:

I have a NSOutlineView and its highlight mode is "SourceList".

When I drag a selected item (the cell is a subclass of NSTextField from the DargAndDropOutlineView sample code) from the list, its text is drawn in white. This means you can't see it since most the of the windows background are white usually.

This does not happen with a NSOutlineView with a standard highlight mode.

Is this a known bug? (Mac OS X 10.5.6 clean install)

Yes, please do log this as a bug.

A work around is to implement -willDisplayCell in your delegate, and to manually change the text highlighting when it is the "drop target row". You may have to keep more internal state to figure out when that is.

corbin


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >NSOutlineView : Incorrect Drag and Drop drawing? (From: Iceberg-Dev <email@hidden>)

  • Prev by Date: Re: Populating a new SQLite Core Data store with default data
  • Next by Date: Re: Surprising entanglement of UI lock during fetch request in background thread (NSViewHierarchyLock/MOC locking deadlock). [POST SAD REALISATION]
  • Previous by thread: Re: NSOutlineView : Incorrect Drag and Drop drawing?
  • Next by thread: NSTreeController Content Array as index accessor object -- what is the <Key>?
  • Index(es):
    • Date
    • Thread