FROM : John C. Randolph
DATE : Wed Dec 22 22:08:09 2004
On Dec 22, 2004, at 6:29 AM, Joe Chan wrote:
> This approach is much simpler than my initial guess. The loading of
> thumbnail works, however, the table is not getting updated with the
> thumbnails until I scroll. Unfortunately, because binding eliminated
> almost all the glue code, it also makes it very hard to debug why it's
> not getting updated. I thought that once the didChange: is called, the
> NSArrayController will trigger an update on the NSImageCell and should
> redraw itself.
Hmm.. I wrote the code off the top of my head, and haven't tested it
in an app. You might try sending -willChangeValueForKey: before
-didChange:valuesAtIndexes:forKey:.
-jcr
>
John C. Randolph <<email_removed>> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
DATE : Wed Dec 22 22:08:09 2004
On Dec 22, 2004, at 6:29 AM, Joe Chan wrote:
> This approach is much simpler than my initial guess. The loading of
> thumbnail works, however, the table is not getting updated with the
> thumbnails until I scroll. Unfortunately, because binding eliminated
> almost all the glue code, it also makes it very hard to debug why it's
> not getting updated. I thought that once the didChange: is called, the
> NSArrayController will trigger an update on the NSImageCell and should
> redraw itself.
Hmm.. I wrote the code off the top of my head, and haven't tested it
in an app. You might try sending -willChangeValueForKey: before
-didChange:valuesAtIndexes:forKey:.
-jcr
>
John C. Randolph <<email_removed>> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
| Related mails | Author | Date |
|---|---|---|
| Joe Chan | Dec 19, 21:58 | |
| John C. Randolph | Dec 21, 00:26 | |
| Joe Chan | Dec 22, 15:29 | |
| John C. Randolph | Dec 22, 22:08 | |
| Joe Chan | Dec 22, 22:27 | |
| Scott Stevenson | Dec 22, 22:40 | |
| John C. Randolph | Dec 23, 00:16 | |
| mmalcolm crawford | Dec 23, 00:26 | |
| mmalcolm crawford | Dec 23, 00:41 |






Cocoa mail archive

