Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMatrix Datasource?



Dear Mike,

Does NSMatrix have a datasource like NSTableViews? I can't figure out how to supply it with data other than setting cells individually.

I have a view in my app that can toggle back and forth between an NSTableView and an NSMatrix. As others have mentioned, I had to set all the data in the NSMatrix myself.


One really nice feature of NSTableView is that it only loads the data that it needs to display at any given point in time. In my NSMatrix subclass, I had to override -drawRect: and implement my own cell-loading queue to get this behavior.

Best regards,

Andrew
KavaSoft

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >NSMatrix Datasource? (From: "Mike R. Manzano" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.