OK, I'm still quite new to Xcode/Cocoa etc, so please forgive me if this issue is something totally obvious, but it seems to me to completely defy any logical software behaviour that I have ever seen.
I have a project which uses OpenGL in Snow Leopard. I have created a very basic solid teapot (using glut, obviously) and have shone a lig...
I have a whole host of models that watch themselves for changes. When a setter is triggered, the observer in the model is called and within that model I make a call to a web server and update information in the web server so it correctly has the data it should.
However, in my call to the web server I can get back an error for anything f...
Hi,
I have a series of avatars; each has a hot pink background of RGB:255,0,255.
Rather than going through every avatar, and manually removing the pink background; is there a way to make Objective C remove the background (masking it) for me?
An example of an avatar follows:
One thing I am concerned about is that the masking is done...
Hello everyone, first post here so sorry for the length of it. I've been lurking and learning a lot so far but now I have to step in and ask a question. I have read numerous posts here as advised in the FAQs, but I couldn’t find exactly the answer I’m looking for.
Before anything else, let me just say that I'm a total beginner in progr...
NSString *NumberToSave = Number.text;
NSString *PassToSave = Password.text;
NSString *PassVerify = VerifyPassword.text;
// Save Settings
NSUserDefaults *standardUserDefaults = [NSUserDefaults standardUserDefaults];
NSString *tmpNum = [standardUserDefaults stringForKey:@"Number"];
if (tmpNum) {
}else{
...
i am using c pointers in which if i increment as *p++ it increments p but returns only the value which p pointed before it was incremented. how can i increment the value pointed by p.
...
Does NSLog() have variants that print without the time and date stamps, and the automatic newline?
Thanks. Now with following code, I can print NSString, cString, or objects:
#import <Foundation/Foundation.h>
#import <stdio.h>
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
...
I am relatively new to Objective C/iPhone Development.
I am developing a simple app with two views using a Navigation controller.
The first view contains several buttons a and the second view contains a uiwebview.
The idea is that when a button is pressed it switches to the second view and the web view loads a local html file. Which h...
I'm new to Objective-C. The Xcode generated template code has: #import <Foundation/Foundation.h>.
When I check it at /System/Library/Frameworks/Foundation.framework/Headers, there are nearly 2 thousands header files!
My question is, for a really simple code that use only NSString, why not import just the NSString.h file?
Does importing...
Hi all,
Got a weird problem with my NSMutableArray and UITableView.
It's got 4 items in the array, the table shows 4 rows but each rows only contains the first array item, rather than row 1 showing array item 1, row 2 showing item 2, etc...
Here's my code:
My Mutable Array
//in .h
NSMutableArray *tableRows;
//in .m
tableRows = [...
In Objective-C, if I override a class method using a category, is there a way I can call the original method (the one that was overridden)?
...
My problem is that I am both new to iPhone development and also to using this HTTPRiot class. The goal is to have a generic XML parser and this class seems to do the trick from the completed demos, but what I haven't been able to find is a barebones implementation tutorial.
What I'm not seeing is the delegate methods being invoked on t...
Ok here goes my situation:
I have a core-data generated class Quantity which has one of its attributes 'Value', marked as a float.
There's a convenience method in the Quantity class which helps me set this property:
- (void)setValueValue:(float)value_ {
[self setValue:[NSNumber numberWithFloat:value_]];
}
Now when I set try se...
I have a UITableView with 2 sections. The section 0 contains a list of file names and the user can tap them to toggle the checkmark accessory. This section is also editable so the user can swipe to delete a file/row. The section 1 is not editable and contains 1 row and acts as a button to initiate a transfer of the files.
Thus, the da...
I am fairly new to Objective-C. Currently porting my own library from C#/Java to objective C.
I now run into a very strange problem for me.
I have a NSArray with several Note objects. I want to transpose on of these notes:
//Note.h
- (Note *) transpose: (int) semitones;
//Main
NSArray *notes = [get it from somewhere];
Note *tra...
Hi all,
Wanted some help with a problem with mapkit I am facing. Should be a silly problem or I have missed out something while going through the mapkit framework.
Here is the senario.
I am placing multiple annotation on the map when the user performs some search like pizza.
Added button for the right annotation view, on click which op...
I'm trying to make a timeline view that shows events as UIButtons that can be pressed for more info.
Ideally I want to lay out the buttons on a UIScrollView, and allow them to stretch/shrink horizontally, but not vertically.
What I'm trying to accomplish would basically be equivalent to using pinch gestures to resize the content view, ...
Hi,
I try to fill my UITableView withd different UITableViewCells. I tried to choose 1 of 3 UITableViewCells out of a XIB-file by identifier but I can't get the value of the UITableViewCell's Identifier.
- (UITableViewCell *)tableView:(UITableView *)_tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
MyTableViewCell *cell = (...
Hej guys,
I was wondering if you know any well working Math or Calculation engines written in Objective-C? Found a graphing one using CorePlot already....
Thanks for your help! :)
...
I'm looking for an Objective-C library for an iOS app that will parse and display articles form an RSS feed.
Specifically,m I'm looking to make an app for a news website. The framework should be able to work with various RSS XML structures if possible. (Well, two different news sites. One uses Wordpress-generated RSS and one does not.)
...