Two things:

1) when I typed "NSArrayController" into the search field on the ADC site, I got 209 possible places where you could begin your search for info on how to use NSArrayController bindings with IKImageBrowserView. If none of these is sufficient or you are a novice to the binding concept, I suggest that you put "Cocoa bindings" into the ADC search field. This option netted me over 1060 places to begin my search for enlightenment.

2) if you are not using a bound array controller, then you must be using some sort of datasource object. The straightforward solution would seem to be simply saving the data that your datasource object is computing with when the application terminates and re-read said data when the application starts. Is that not an option? (for example, using the image-browser sample code from the ADC site, you might simply save the array of objects kept in the variable "images")

regards,

douglas

On Feb 12, 2009, at 12:53 PM, Chunk 1978 wrote:

hi douglas,

i am not using an array controller... my current method is copying
images to the pasteboard (they are produced images from within the
app) and writing them to a folder when they are dropped into the image
browser.  i'm assuming it shouldn't be too difficult to incorporate an
array controller into what i have already to handle the arrangements
of the images and hopefully have no problem trying to get the
imagebrowser to read the array when it opens (it appears that the
IKImageBrowser class isn't documented very strongly), but i've never
used an array controller before.  know of any tutorials off the top of
your head?




On Thu, Feb 12, 2009 at 10:52 AM, douglas welton
<douglas_wel...@earthlink.net> wrote:
I will "assume" that you are using an array controller to handle the backing data for you IKImageBrowserView. If so, all you will need to do is archive
the array controller's arrangedObjects (or content plus any filter
predicate) and save it to a file - perhaps using NSArray's handy- dandy
-writeToFile:atomically: method.

if my assumption is wrong, then you'll need to provide details of what you are actually doing (for data-sourcing) and what you have tried before you
asked your question.

regards,

douglas

On Feb 12, 2009, at 10:01 AM, Chunk 1978 wrote:

topic says it all. i have installed an IKImageBrowser which allows me
to drop images and reorder them.  it would be great to be able to
automatically save the dropped images as well as their order so that
the next time the app starts and the image browser loads up everything
is still there.

can someone please direct me to where i should be looking to
accomplish this?  any known tutorials maybe?

thanks

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/douglas_welton%40earthlink.net

This email sent to douglas_wel...@earthlink.net

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to