• 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: error: request for member `filenames' in something not a structure or union
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error: request for member `filenames' in something not a structure or union


  • Subject: Re: error: request for member `filenames' in something not a structure or union
  • From: Pete Yandell <email@hidden>
  • Date: Sun, 21 Sep 2003 22:51:52 +1000

I think you mean:

fileToSend = [NSData dataWithContentsOfFile:[[sheet filenames] objectAtIndex:0]];

Confusing your Objective-C with Java perhaps? :)

Pete Yandell
http://pete.yandell.com/

On Sunday, September 21, 2003, at 10:34 PM, Matis Schotte wrote:

hi,
when i try to compile a app; a error occurd, but i dont understand it:
error:
error: request for member `filenames' in something not a structure or
union
code:
<snip>
- (void)openPanelDidEnd:(NSOpenPanel *)sheet returnCode:(int)returnCode
contextInfo:(void *)contextInfo {
if(returnCode == NSOKButton)
fileToSend = [NSData
dataWithContentsOfFile:sheet.filenames.objectAtIndex(0)]; //<- HERE IS
THE ERROR!!
else {
[fileToSend release];
fileToSend = nil;
}
}
<snip>
thx,
smat
_______________________________________________
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.

References: 
 >error: request for member `filenames' in something not a structure or union (From: Matis Schotte <email@hidden>)

  • Prev by Date: error: request for member `filenames' in something not a structure or union
  • Next by Date: Re: error: request for member `filenames' in something not a structure or union
  • Previous by thread: error: request for member `filenames' in something not a structure or union
  • Next by thread: Re: error: request for member `filenames' in something not a structure or union
  • Index(es):
    • Date
    • Thread