Re: Warning when using NSSplitView
Re: Warning when using NSSplitView
- Subject: Re: Warning when using NSSplitView
- From: j o a r <email@hidden>
- Date: Sun, 4 Jan 2004 03:30:50 +0100
You need to include the type of the outlet somewhere to allow the
compiler to know what method you intended to use. As an alternative you
could have made a cast in the method call:
[(NSSplitView *)splitView setVertical:YES];
..but I prefer the way you already solved it - as you only need to do
it in one place (a golden rule in programming), and as it will also
give you some benefits when you're working in IB.
j o a r
On 2004-01-04, at 02.23, Oli Donald wrote:
>
XCode seems to display warnings for header files in the c files. The
>
two errors come from 'NSSplitView.h' (defines as BOOL) and
>
NSSliderCell.h (defined there as int). I fixed it by changing the
>
'IBOutlet id' to an 'IBOutlet NSSplitView *'. Is this the only way to
>
solve the problem?
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.