Hi,
I have an NSTableView hooked up to Core Data. Here is what I want to do.
The table has two columns. When I finish editing the first column, and press tab to go to the next column, I want to programmatically populate the second column based on the first column's data. Is there a delegate method that can help me with this?
Thanks
...
I'm going to learn Objective-C, and I was wondering if there was an eclipse plugin out there to do things like syntax highlighting and easy compiling/project management. I did some preliminary searching, but I couldn't find anything.
What's my best I can do for an IDE?
I don't have a mac.
...
Hey all, trying to learn objective-c. It was going quite well, until I realized I was missing a link.
When building in the spirit of MVC, I understand it as you Model and View should never talk to eachother.
I have this problem I'm messing around with now.
A model containing a polygon class.
Contains an polygon object with
attributes...
I am new to programming, so when I got this error, I didn't know what to do. In my iPhone app, I press a button to switch a view, then I get this in the log.
GNU gdb 6.3.50-20050815 (Apple version gdb-966) (Tue Mar 10 02:43:13 UTC 2009)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public...
How do I work out how much large an area drawing an NSString will occupy, i.e. by using:
[string drawAtPoint:p withAttributes:nil];
I ideally need to work this out before its drawn so I can space out the "areas" in which the strings are drawn appropriately.
...
Hey there,
I'm desperatley trying to connect controls of NSViews which will reside in a NSCollectionView using outlets. The collection view is feeded using an NSArrayController.
I created the NSView in a seperate NIB file and in the implementation of NSCollectionViewItem I overwrote copyWithZone to load it:
-(id)copyWithZone:(NSZo...
I have a tableview in UIViewController and I want to delete a row of the tableview and also update a sqlite db. While at the edge of the cell deleted my apps get terminated, randomly.
Here is the code in question:
NSMutableArray * FeedArr;
NSString *query,*sid;
sid=[[FeedArr objectAtIndex:indexPath.row]objectForKey:@"feedId"];
DB *dbob...
Hey guys,
I have a table view which I'm using for some settings in my app. The tables cells are all default (no customisation at all), and simply contain some text for their label and a UISwitch for the accessory view.
My problem is that I need a reference to the switch so that I know when it has been switched on and off.
Currently I ...
With the below code I'm creating a fetch request. The problem I'm having is getting the fetch request data and doing something with it like putting it into a variable (like I'm trying to do below with the firstManagedObject variable). I.e., I don't understand what to do with my "result" NSArray that I've created (shown in below code) t...
Is there a shortcut method much like NSHomeDirectory() and NSTemporaryDirectory to get to the resources folder within your project?
Is the /resources/ folder the best place to be storing a file?
...
I have an About View which I push onto a NavigationController. The view has one UILabel which is connected to an IBOutlet. In viewDidLoad I populate the UILabel with the bundle version number (a string). Testing with instruments suggested that the line marked with a comment is leaking memory: -
viewDidLoad {
[super viewDidLoad];
...
Hey folks,
I'm starting to go a little crazy with this one.
I have an iphone application with a somewhat complex view structure it is a tabbed application with either a view controller or a navigation controller on each tab.
The main controller for one tab uses the viewDidAppear callback to reload any data that has been modified sin...
Hi,
I have the following code:
#import <Foundation/Foundation.h>
#import "ServerRequest.h" // works even though this line is included
#import "ServerResponseRecord.h"
@protocol ServerRequestDelegate<NSObject>
-(void)request:(id)request gotResponseRecord:(ServerResponseRecord*)response;
-(void)request:(id)request gotError:(NSError*)er...
Hi,
I am using SQLite3 in my iPhone app to select data from a table (tbresults), do some calculations on the data and display it in my uitableview. The sql command uses the SUM function and my app doesn't seem to like it.
The method where I do the select from the table is below but processing seems to fail at the following line.
if(s...
Hi guys,
I'm pretty new to objective-c and try to create a small app for the iphone.
I'm nearly done beside this little error here. Actually, I've searched hours with google to find a proper solution but unfortunately I'm not able to find a solution which works.
I'm using this tutorial here to build up an UITableView: UITableView Tutori...
Is there a way to call an ActionSheet directly from a tabbar. I'm working on a program where the user wants a contact button on the tab bar that displays an actionsheet with the appropriate buttons.
Thanks in advance
...
Hi I would like to pause the execution of a function in an cocoa project. I dont want to use sleep() because the function needs to resume after user interaction. I also want to avoid doing this with multiple calls to sleep.
Thanks for your responses. Ok I started the code while waiting for some answers. I then realized that sleep or...
Hi
I have a UIImageView object that is just a plain black rectangle.
This is what i use to select a button in the view.
Problem is, I have 49 of these buttons in my view, and all of them can be selected at the same time.
What I use for adding a subview to a button is:
UIImageView* selectedSquareView = [[UIImageView alloc] initWithFra...
I am developinga Core Data app for the iPhone, and I am new to the whole platform etc.
My question is, how much should I look for and handle errors and exceptions, for example when opening up the persistent store. Looking at the "Locations" Core Data Tutorial for example (hope its OK to quote it here like this):
(Se comments in the cod...
So, I have a class called MazeCell which is declared in "MazeCell.h"
#import <Foundation/Foundation.h>
enum {
MazeCellEdgeWall = 0,
MazeCellEdgeGate = 1,
MazeCellEdgeExit = 2
};
typedef NSUInteger MazeCellEdge;
@interface MazeCell : NSObject {
MazeCellEdge left;
MazeCellEdge right;
MazeCellEdge down;
MazeCe...