FROM : George Orthwein
DATE : Wed Jun 21 18:39:39 2006
I do something similar. User drops files onto an NSOutlineView. I
grab the file paths to use as unique identifiers to add tabViewItems
with initWithIdentifier:. The TabView's selectedIdentifier is bound
to the selection.filePath of the outline view (well its
arrayController actually) so that selecting an item in the outline
view will select the correct tab. Seems sensible to me. :)
If you need a unique string, why not just append the current itemType
count (or row number) to a string? E.g. "ItemType1","ItemType2", etc
Hope that helps,
George
DATE : Wed Jun 21 18:39:39 2006
I do something similar. User drops files onto an NSOutlineView. I
grab the file paths to use as unique identifiers to add tabViewItems
with initWithIdentifier:. The TabView's selectedIdentifier is bound
to the selection.filePath of the outline view (well its
arrayController actually) so that selecting an item in the outline
view will select the correct tab. Seems sensible to me. :)
If you need a unique string, why not just append the current itemType
count (or row number) to a string? E.g. "ItemType1","ItemType2", etc
Hope that helps,
George
| Related mails | Author | Date |
|---|---|---|
| Andrew Kinnie | Jun 21, 17:38 | |
| George Orthwein | Jun 21, 18:39 | |
| Paul Collins | Jun 21, 18:57 |






Cocoa mail archive

