Mailing Lists: Apple Mailing Lists

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

Image in an outline view



OK, I'm stumped.

Is there any way to show images in an outline view?

How can I load images into the cells in an outline view, along with the text, such as the document and folder icons we see next to the names in the outline view in the Finder, or the mailbox icons next to the mailbox names in the outline view we see in Mail, etc?

I can load images into an image cell in a table view, by basically:

set contents of data cell 1 in data row 2 in data source of table view "MyTableView" to (load image "MyImage")

The dictionary shows that a cell in a table or outline view has an image property. I'm concluding that I can only access the properties of cell via the "will display item cell" handler, which won't be called if the outline has a data source. I tried modifying the "Outline" example project by adding a "will display item cell" handler:

property testImage : null

on launched theObject
-- other stuff here
set testImage to load image "Minus" -- an image file I added to the project
end launched


on will display item cell theObject cell theCell table column tableColumn outline item outlineItem
tell theCell
set bordered to true
set image to testImage
end tell
end will display item cell


Te "set bordered" works, but the "set image" gives an error "AppleEvent handler failed. (-10000)".

Is there any way to show images in an outline view?

Thanks,
Tom
BareFeet

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

This email sent to 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.