I added an index search to a core data backed UITableView. the search works fine, however after navigating back to the tableView I get this error:
-[NSSQLRow controllerDidChangeContent:]: unrecognized selector sent to instance 0x815edf0
I can post more code if this is too little information to go on.
thanks for any help
...
Is it ok to cast a NSdictionary object to NSMutableDictionary?
NSDictionary *dict;
NSMutableDictionary *mDict = (NSMutableDictionary *)dict;
Tried this and it worked fine.
...
Hi,
Im trying to get the xAuthTwitterEngine Demo to run on Iphone simulator 3.0.
I changed the Base SDK in Project settings to Iphone Device 3.0 and Iphone OS deployment Target to Iphone OS 3.0
But my build fails with 18 errors. I dont understand why.
It has something to do with libOAuth.a and OAtoken.
Can someone help me out here?
Than...
Hi
I have some Entities holding values for my program.
E.g. a "Person" Entity has synthesized properties for the values "name", "age", "address" etc.
I wish to build a "printMe" method on the Entity, so that invoking this method results in the above properties being printed to the console like "\nPropertyName:Value".
I have done this ...
Hello.
I`m really new in Objective-C and Mac OSX programming.
Can someone give me simple example for the next task:
I have array of strings (for example ('one','two','three','four')) in my app GUI each string should be represented by row, each row should has Label(with text of string) and CheckBox. Number of strings in array may be di...
Hi,
I have a weird problem (at least in my opinion). When I add a UISwitch to my table view, the switch changes cell automatically when the user scrolls the table view. Below is the code on how I create the UISwitch for the tableview.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath ...
Hi,
I have an image encoded in BASE64 which I retrieve from a server and than load into a UIWebView
with :
[webViewer loadData:[NSData decodeBase64ForString:imageData] MIMEType:@"image" textEncodingName:@"ASCII" baseURL:nil];
The image loads fine but when the image is bigger than my webviewer, the user cannot zoom in and
out by pinch...
Hi,
well i have search a lot for iphone material to get started ,
but i found most of the stuff that divided either in iphone development or in learning objective C only.
Can someone please send me links/ebooks/articles/videos where once can learn objective c and iphone
together ?
...
Hey guys,
I would like to create an app for iPhone which should be able to connect to a server and download an xml file. The file should be freshly generated from a database every time it is requested.
As an example, imagine an app that recommends books to the user, where the recommendations are generated by the server upon each reques...
A simple question here for many of you. I have an indeterminate NSProgressIndicator which I start and stop many times in my code. Does it reset when you call restart it, or do you have to manually do that? If you do have to do it manually, how would I go about doing it?
Many thanks,
jrtc27
...
hi there, i am trying to zip a file into a subfolder in my iphone app.
NSArray *path = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *dir = [path objectAtIndex:0];
NSString *storeunzipfiles = [dir stringByAppendingPathComponent:@"/MyFolder"];
if (![[NSFileManager defaultMa...
I'm using a method CGPathGetPathBoundingBox that is only available in iOS 4.0. I'm doing a check against NULL to see if it is available as suggested in Apple Docs but I'm getting the following runtime error:
dyld: lazy symbol binding failed: Symbol not found: _CGPathGetPathBoundingBox
Referenced from: /Users/..
Expected in: /Developer/P...
I am stuck in a tutorial, trying to switch views with a toolbar. My code builds fine and I put some alerts in to check the toolbar was working, and it is. But my subviews I am inserting are just not showing up at all. Can anybody help please?
Here is my main controller code..
MainViewController.h is
#import
@class FlavourPickerVie...
Hi,
I've been playing around so much now with ObjC that I feel lost as far as "autoreleasing" is concerned.
in my .h:
NSString *sAStringMember;
in my .m:
-(void) createAString
{
NSString *sAString = [NSString stringWithString:[dummyCode...get String ffrom some input field for instance]];
sAStringMember = sAString;
}
Several sh...
Hi guys,
Been playing around with Xcode for about 2weeks now, and reading about MVC a bit. I have a problem trying to connect the Model to the Controller because I find it hard to get my head around arrays. I can handle simple arrays when i programmed some in Java but I'm quiet intimidated by the Obj-C NSArrays i see.
If somebody woul...
Hi there,
having a TTTableViewController instance, I try to set the background of the currently selected cell. I am aware of the style sheets concept in Three20, but it just offers:
- (UITableViewCellSelectionStyle)tableSelectionStyle {
return UITableViewCellSelectionStyleGray;
}
with standard options UITableViewCellSelectionStyl...
I am trying to detect if an array isn't empty in order to be able to do a certain call.
I tried using if (![array ==nil]) however that doesn't compile.
I'm sure there is a really easy explanation to this.
Update
If array is empty I want to do this:
array = [[NSMutableArray alloc]init];
If it has an object I want to do this:
array =...
I'm trying to draw an NSTextFieldCell subclass that looks like the rounded event item normal table in iCal.
Based on this question, I've got the following code in my subclass:
- (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView {
NSGradient *gradient = [[NSGradient alloc] initWithStartingColor:[NSColor lig...
Hello,
I am trying to resize programmatically a window in order to keep just its titlebar.
WindowShadeX : http://unsanity.com/haxies/wsx is doing this and I am wondering what can be the solution they are using.
Thanks in advance for your help,
Regards,
...
Hello,
I have been recently working on an easy to use Syntax Highlighting system for a personal project. So far, I have everything working properly by finding the range of specific strings and highlighting that range in the NSTextView. Everything works until you try to type a highlighted word twice, which causes the error demonstrated b...