• 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
NSOutlineView selectedRow error?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSOutlineView selectedRow error?


  • Subject: NSOutlineView selectedRow error?
  • From: Scott Harper <email@hidden>
  • Date: Sat, 4 Mar 2006 18:09:01 -0700

Hello, I'm making the following call:

NSImage *ti = [[[templateView tableColumnWithIdentifier:@"Image"] dataCellForRow:[templateView selectedRow]] objectValue];

in my code, which retrieves an image contained in the appropriate column of the selected row. This seems to work just fine at first, but I've noticed several problems.

1) When I select an item, then select an item higher up on the table, it lags about one item selection behind each time. So if I select item x, then select x-1, it still pulls the image from x. If I then select x-4, it pulls the image from x-1.

2) If I select an item, then scroll around, then activate the method to pull the image, it pulls some COMPLETELY unrelated image from the outline view.

I think this probably has something to do with the fact that I'm using an NSOutlineView, but I cannot find a method for the outline view which chooses the currently selected item/row.

Little help?
--Scott
_______________________________________________
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: NSOutlineView selectedRow error?
      • From: Greg Herlihy <email@hidden>
  • Prev by Date: Re: NSXMLDocument question
  • Next by Date: Re: Applescript command and sdef
  • Previous by thread: Re: Help with custom NSCell and Bindings in Table View
  • Next by thread: Re: NSOutlineView selectedRow error?
  • Index(es):
    • Date
    • Thread