error: request for member `filenames' in something not a structure or union
error: request for member `filenames' in something not a structure or union
- Subject: error: request for member `filenames' in something not a structure or union
- From: Matis Schotte <email@hidden>
- Date: Sun, 21 Sep 2003 14:34:35 +0200
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.