Hi, it's a theoretical question: suppose I come up with an outstanding new scripting language and want to make a Cocoa bridge for that.
Is it possible to make Interface Builder recognize the new language and parse the source code automatically so that it can list the IBActions and IBOutlets, just as it already does for Objective-C's .h,...
Is it possible to add some meta-information on class, property, method in Objective-C? Something like annotations in Java or C# attributes ?
...
Hi,
I'm creating an app which uses a UINavigationController (which's view's nib is RootViewController.xib) located in MainWindow.xib, and a UITableView in RootViewController.xib.
I have this code:
MainWindow.xib's UINavigationController
TDAppDelegate.h
//
// To_DoAppDelegate.h
// To Do
//
// Created by Radek Slupik on 14-02-10.
...
I have an tabbar-application with four tabs. Every tab loades an nib with its viewcontroller.
In my first nib i have two views. In the first view (placeholder) is a button to switch to the second view (view1) and reverse (With an Boolean to see if the second view is on top or not).
-(IBAction)transitionFlip {
[UIView beginAnimations...
Hi out there:
i got an object with contents of html markup in it, for example:
string = @"<p>This is wonderful</p> <p>Also some ‘ entidies ’ <p>";
so i want first to convert this entidies in for my label text.
the second step would be to convert my p tags to line breaks.
the third step to convert my "img" tags to uiima...
Hi there,
i am doing some experiments with coredata and objective-c.
My application works fine in the simulator.
It also works on my iPodTouch. But how to i copy my local database to my device?
thanks,
...
I'm trying to mix C++ and Objective-C, I've made it most of the way but would like to have a single interface class between the Objective-C and C++ code. Therefore I would like to have a persistent C++ object in the ViewController interface.
This fails by forbidding the declaration of 'myCppFile' with no type:
#import <UIKit/UIKit.h>
...
I'm trying to pass some lat/long values from a JSON doc to iPhone's Map Kit to then plot the points on the map. The values are coming from an NSArray:
CGFloat goLat = [valfields objectForKey: @"geo_lat"];
CGFloat golong = [valfields objectForKey: @"geo_long"];
CLLocationCoordinate2D newCoord = {golat, golong}; etc...
But I'm getting...
Is there any XML binding framework for Objective-C?
I've tried a few searches on google and didn't find anything yet.
I'm looking for something that reads from a XSD/DTD/XML and generate:
the Model classes to store values
the actual parser that reads from the XML and populate the model classes
...
Is there a way for creating an array from other severals arrays, in Objective C?
...
I'm trying to use a std::list in my objective-c program and having run-time issues.
I have (edit for brevity)
#import <list>
...
@interface Foo {
std::list<Bar *> *myList;
}
...
@implementation Foo
-(void)loopList {
myList = new std::list<Bar *>;
for (std::list<Bar *>::iterator ii; ii != myList->end(); ++ii) ...
I'm just getting started with using threads in obj-c/cocoa and I'm running into some trouble.. I get this error in the console:
2010-02-15 09:18:41.467 Timer[1007:4503] *** __NSAutoreleaseNoPool(): Object 0x10012adc0 of class __NSCFDate autoreleased with no pool in place - just leaking
2010-02-15 09:18:41.478 Timer[1007:4503] *** __NSAu...
I'm finishing a small project, an iPhone game.
I've been expanding my GameObject class to include powerups and mines. These are physically identical to each other.
Late last night I came up with the genius idea of making two subclasses of GameObject. They're each less than a hundred lines long. I also have to do stuff like cast them t...
I have a tableView that loads an XML feed as follows:
- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
if ([stories count] == 0) {
NSString *path = @"http://myurl.com/file.xml";
[self parseXMLFileAtURL:path];
}
}
I'd like to have the spinner to show on the top bar at the app launch an...
Can someone explain why the last line prints out -1? It happens when copy is called on a NSMutableString, I expect the returnCount of strFour to be 1, since an immutable copy should be returned.
NSMutableString *str =[NSMutableString stringWithString:@"hi"];
NSLog(@"new instantiated variable has a retain cout:");
NSLog(@"%d",[str re...
Hi,
I have a table view and when I drop something on it, I get a blue focus inside it. Now, iTunes has the same behavior but in iTunes the color of the line is a lighter blue and the line is thicker. I have added a picture to explain it better. I want to achieve the same thing but I don't know why.
The Image: http://img502.imageshack.u...
Hi Out there,
my app looks like this
UINavigationController with UITableViewcontroller as RootViewController.
feedsTableViewController = [[ablogFeedsTableViewController alloc] initWithStyle:UITableViewStylePlain];
feedsNavigationController = [[UINavigationController alloc] initWithRootViewController:feedsTableViewController];
feedsNav...
In Xcode 3.2.1 I have this problem where it stops highlighting Objects in purple, and such. For example:
In that example, NSAutoreleasePool, pool, img, size, width and height should be highlighted, however, they are not. Here is a screenshot of what that looks like.
Anyone know how to fix this?
Edit: Also, code sense isn't showing c...
Hello ! every one.
In my application - there are four buttons named as follows.
Top - left
Bottom - left
Top - right
Bottom - right
Above this buttons there is an image view / or we can use also UIView.
Now, suppose user taps on - top - left button. Above image / view should be rounded from that particular corner.
I am having som...
So I'm brand new to Netflix's API and have never used an API ever before. I'm ok with Objective-C and Cocoa Touch but just have no clue where to start when accessing the API and how to in general. Can someone help me get started with some code that will access titles in Netflix or just how to access a REST API in general with authenticat...