Re: passing NSRect struct as an arg
Re: passing NSRect struct as an arg
- Subject: Re: passing NSRect struct as an arg
- From: crucial felix <email@hidden>
- Date: Mon, 16 Dec 2002 21:52:03 -0500
that's it !
On Monday, December 16, 2002, at 09:40 PM, Lance Bland wrote:
>
hi-
>
>
Make sure the method prototype is visible to the calling code.
>
Otherwise it will pass a 32 bit section, not a 128 bit section. Do you
>
get any warning statements during compile time about
>
drawWaveformFrom:to:inRect: not being defined?
yes, i was negligent on updating the headers.
so you can get away with that (for a bit), but not with structs.
>
p.s. - you can pass NSRect as long as the passing method is visible.
i've noticed also that although
@class SFP;
is supposed to work, its always better and sometimes necessary to
import the header.
the runtime and the debugger sometimes would report my classes as being
structs.
then there is the situation where the imported header tries to import
the header that
imported it. rather than loop, it fails. so i have to do:
#import "Classname.h"
@class Classname;
or try to juggle the imports to the most efficient order.
>
>
-lance
>
----------------------------
>
Lance Bland
>
mailto:email@hidden
>
VVI Is The #1 Visual-Report Tool Developer For Mac OS X
>
http://www.vvi.com
>
-felix
_______________________________________________
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.