• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Protocol for Table View Trouble
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Protocol for Table View Trouble (From: Eric Lee <email@hidden>)

  • Prev by Date: Re: How to use a button to update an application with a text field value
  • Next by Date: Re: Protocol for Table View Trouble
  • Previous by thread: Protocol for Table View Trouble
  • Next by thread: Re: Protocol for Table View Trouble
  • Index(es):
    • Date
    • Thread