• 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: Images in folder - simple question?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Images in folder - simple question?


  • Subject: Re: Images in folder - simple question?
  • From: email@hidden (Dominik Gwosdek)
  • Date: Wed, 28 Jan 2004 17:47:00 +0100

Hi again,

first of all, thank you all for your hints.

I have chosen the NSFileManager with directoryContentsAtPath.
Here is the code:


- (IBAction)forwardButton:(id)sender
{
imageArray = [[NSFileManager defaultManager]
directoryContentsAtPath:@"/users/dom/Desktop/images/"];

currentIndex++;
NSImage *image = [imageArray objectAtIndex:currentIndex];
[showImage setImage: image];


}

It compiles without errors(yeah) but when I test the forwardButton I
get the following
error message:

2004-01-28 17:45:38.978 DDFCover[2061] NSImageCell's object value must
be an NSImage.

What' wrong?

thank you.

Dominik
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Images in folder - simple question?
      • From: Stefan Pantke <email@hidden>
    • Re: Images in folder - simple question?
      • From: Jeremy Dronfield <email@hidden>
References: 
 >Images in folder - simple question? (From: email@hidden (Dominik Gwosdek))
 >Re: Images in folder - simple question? (From: Stefan Pantke <email@hidden>)

  • Prev by Date: Re: OT: Advice sought...
  • Next by Date: Re: Any new/updated Cocoa books soon?
  • Previous by thread: Re: Images in folder - simple question?
  • Next by thread: Re: Images in folder - simple question?
  • Index(es):
    • Date
    • Thread