• 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: Putting a spinning progress indicator in a outline
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Putting a spinning progress indicator in a outline


  • Subject: Re: Putting a spinning progress indicator in a outline
  • From: Markus Spoettl <email@hidden>
  • Date: Sat, 2 Aug 2008 11:57:58 -0700

On Aug 2, 2008, at 6:15 AM, Andreas Mayer wrote:
which doesn't seem to work, can one even mix binding and datasource driven columns on a NSOutline?

I think that should be possible.

Turns out that if you mix binding and datasource, you have to implement not only


- (id)outlineView:(NSOutlineView *)outlineView objectValueForTableColumn:(NSTableColumn *)tableColumn byItem:(id)item

but also

- (BOOL)outlineView:(NSOutlineView *)outlineView isItemExpandable: (id)item
- (id)outlineView:(NSOutlineView *)outlineView child:(int)index ofItem: (id)item
- (NSInteger)outlineView:(NSOutlineView *)outlineView numberOfChildrenOfItem:(id)item


Unless you implemented those three, -objectValueForTableColumn: will never be called, even though the three never get called due to binding.

I'd say it's not originally intended to use NSOutlineView with both bindings and datasource, at least that's what it smells like for me.

or I have to add a value binding to the cell implementation.

In case you do, I'd appreciate if you shared your code. :)


You can count on that, but since I got it working without I might not do this. Unless it turns out that the mixed mode comes with issues.

Thanks for the progress implementation, works nicely!

Regards
Markus
--
__________________________________________
Markus Spoettl

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: 
 >Putting a spinning progress indicator in a outline (From: Markus Spoettl <email@hidden>)
 >Re: Putting a spinning progress indicator in a outline (From: Jens Alfke <email@hidden>)
 >Re: Putting a spinning progress indicator in a outline (From: Markus Spoettl <email@hidden>)
 >Re: Putting a spinning progress indicator in a outline (From: Andreas Mayer <email@hidden>)

  • Prev by Date: Re: Coding around a known bug
  • Next by Date: Re: Coding around a known bug
  • Previous by thread: Re: Putting a spinning progress indicator in a outline
  • Next by thread: NSDistributedNotifications and scripting languages
  • Index(es):
    • Date
    • Thread