Warning when using NSSplitView (multiple declerations for method 'isVertical')
Warning when using NSSplitView (multiple declerations for method 'isVertical')
- Subject: Warning when using NSSplitView (multiple declerations for method 'isVertical')
- From: Oli Donald <email@hidden>
- Date: Sun, 4 Jan 2004 01:18:31 +0000
Hi,
This is probably really simple...
I'm writing a small app that uses a split view, and the user can toggle
between horizontal and vertical splits. It works ok, but I get a
warning from the compiler when I use the 'isVertical' method. Here is
the code for the entire app so far:
- (IBAction)changeViewSplit:(id)sender
{
if([splitView isVertical] == YES)
{
[splitView setVertical:NO];
[splitMenuOption setTitle:@"Split View Vertically"];
}
else
{
[splitView setVertical:YES];
[splitMenuOption setTitle:@"Split View Horizontally"];
}
[splitView adjustSubviews];
}
I get three warnings
multiple declerations for method 'isVertical'
using '-(BOOL)isVertical'
also found '-(int)isVertical'
I've made sure I haven't defined any methods or instance variables with
the same name. The app works fine, but its annoying having these
warnings floating around! Also, is the [splitView adjustSubviews] call
correct?
Cheers,
Oli
_______________________________________________
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.