Re: error: request for member `filenames' in something not a structure or union
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: "M. Uli Kusterer" <email@hidden>
- Date: Sun, 21 Sep 2003 15:23:15 +0200
At 15:01 Uhr +0200 21.09.2003, j o a r wrote:
What is this?
sheet.filenames.objectAtIndex(0)
The source code you included indicated that you were using
Objective-C, in which case you cannot use the dot notation for
sending messages to objects.
Not to mention that "sheet" is declared as a pointer type, which
means every C programmer's guts should scream "missing de-reference!"
here. Which is exactly what the error message
"error: request for member `filenames' in something not a structure or union"
means. It says that an NSOpenPanel* (from which you're requesting the
member 'filenames') is not a struct or a union. Which is true, since
it's actually a pointer to a class.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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.