Re: Protocol for Table View Trouble
Re: Protocol for Table View Trouble
- Subject: Re: Protocol for Table View Trouble
- From: Ken Thomases <email@hidden>
- Date: Wed, 6 Aug 2008 01:01:48 -0500
On Aug 6, 2008, at 12:43 AM, Eric Lee wrote:
I've been having trouble implementing some protocols for table view.
I just copied and pasted from my other code into this .m file,
changed the variables so that it matched the variables in the .h
file, but it has 6 errors, and I can't find out why!
Here's the .m file:
#import "drawerTableView.h"
You expect us to guess what's in that header?
@implementation drawerTableView
- (IBAction)makeDrawerVisible:(id)sender
{
[drawer setLeadingOffset:0];
[drawer setTrailingOffset:0];
[drawer openOnEdge:1];
[itunessongs initWithSource:@"Users/ericlee/Desktop/Development/
Watch/getitunessongs.scpt"];
[drawerTableView reloadData];
}
- (IBAction)makeDrawerGone:(id)sender
{
[drawer close];
}
- (NSInteger)numberOfRowsInTableView:aTableView
You didn't provide a type for the aTableView parameter.
{
if ([itunesArray isEqual:drawerTableView]) { //says there's a
"error:syntax error before 'drawerTableView'
This and all of the other errors suggest that itunesArray is unknown
to the compiler. I gather it's supposed to be an instance variable of
the class, but it doesn't seem it has been declared. I suspect a
difference in case.
Regards,
Ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden