| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
i just tried the following with Xcode3:
1) read a plist in awakeFromNib store its content in an array
NSArray* myArray = [NSPropertyListSerialization ........
2)
tried to setup my tableview like so:
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return [myArray count];
}
3)
but in 2) i get an error telling me, that myArray is undeclared (it was declared in awakeFromNib)
What did i forget?
I would suggest reading this:
http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Introduction/chapter_1_section_1.html
Another thing:
I tried to drag the header file of the above to the interfacebuilder windows which includes the tableview,
but no unlike in interfacebuilder2 nothing happens (no "datasource box").
Whats wrong here?
b.bum
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ 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: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden This email sent to email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.