So I finally got a Mac to play around with and I'm downloading the massive iPhone SDK.
Do any of you iPhone/Mac programmers have a favorite book? Site? Tutorial to get started with?
I haven't touched C code in a long time and have only briefly seem some Objective-C code. I'm a full time asp.net/C# dev, so I have a programming backgroun...
Specifically, I want to create a new NSWindow in IB in MainMenu.xib, but I don't want that to be open when the application launches. I tried doing close: and orderOut: in both the init and awakeFromNib methods of my NSWindowController class, but it flickers for a second before closing.
...
Greetings,
I have an NSTableView with two columns that works fine... except: If I set the sort descriptor for the table in Interface Builder, things work as expected and sortDescriptorsDidChange gets called as expected. If, however, I don't set the sort descriptors in Interface Builder and instead use this:
[tableView setSortDescripto...
I'm getting an NSArray filled with something from a helper class. I have a small clue that it might contain NSDictionarys. But i'm not sure. I tried to save the array to a plist but it didn't work because there is probably non plist objects in there.
...
Hello,
I wrote a little app that uploads a selected picture form the ImagePicker to twitpic with this code (extract):
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
[picker dismissModalViewControllerAnimated:YES];
UIImage * images = [info objectForKey:@"UIImag...
Are there any open source libraries for doing SNMP GET/SETs using the Objective C/Cocoa Touch (for IPhone)?
...
I'm working on a menubar note-taking app with Simplenote syncing support, and it's been using a separate title and content for each note. It shows the title in an NSTableView and the content in an NSTextView, but now I would like for it to show the content as the title in the table view like in Simplenote. My problem is that I would like...
I'm trying to add scrollbars to an IKImageView. Basically at the moment, I need some examples of a program that loads an image into a view, and if the window is too small, sets up scrollbars that do the right things...
Why can I not find these examples on the apple dev site?
Added info:
After looking at ImagekitDemo I see that eviden...
I was just working through a iPhone book and I noticed a comment that stated...
If you declare a property with a
different name than its underlying
instance varaible (which can be done
with the @synthesize directive)
Can anyone explain how the above quote might work, I am just curious as all references to @property / @synthes...
Hello, I have a NSString with this content:
<?xml version="1.0" encoding="UTF-8"?>
<rsp stat="ok">
<mediaid>y2q62</mediaid>
<mediaurl>http://twitpic.com/url</mediaurl>
</rsp>
Now I want to get the twitpic-Url in a new NSString without all the other Strings. How can I make this? Can I search in NSStrings? Like: Find the strings...
Say I have an array of points that form a line and a text. How can I go about drawing the text along this line in
- (void)drawRect:(CGRect)rect
of a UIView?
I am able to draw the path without a problem. Is there a standard method that I overlooked or a framework that would allow me to draw the text along that path? Ideally I woul...
when i create a new view based application a few methods in the implementation file (.h)
i do not understand their purpose and when i look into the developer center its kind of hard to understand because of how its explained.
what purpose do these methods have and what are they used for in plain english.
- (void)loadView
- (void)viewD...
my NSMutableArray creation code is being bypassed altogether for some reason. in theory it is supposed to create an NSMutableArray based on an sqlite database. There is only one warning message and no errors. what am I missing?
the implementation file is:
#import "iProspectFresno LiteAppDelegate.h"
#import "MainViewController.h"
#import...
NSMutableArray *persons = [ [ NSMutableArray alloc ] init ];
How can I edit person attributes without doing something like:
Person *p = [ [ Person alloc ] init ];
p = [ persons objectAtIndex:0 ];
p.name = "James Foo";
[ persons replaceObjectAtIndex: ([ persons count ] - 1 ) withObject:p];
I would like to do something like:
[ perso...
I'm working on a little project where I want to delete certain 802.1x profiles from OS X using CoreWLAN and the CW8021XProfile class.
I can't seem to find anything giving this ability in the CoreWLAN framework. I thought someone here might have some idea about whether or not this should be possible using CoreWLAN or any other method.
I...
When I'm trying to do this to get the BOOL from a dictionary, I get:
BOOL isTrue = [someDict objectForKey: @"isTrue"];
I get:
Initialization makes integer from pointer without a cast
I set the dictionary by doing this:
self.someDict = [[NSMutableDictionary alloc]
initWithObjectsAndKeys:
self.isTrue, @"isTrue",
...
Example: The -save: method of NSManagedObjectContext is declared like this:
- (BOOL)save:(NSError **)error
Since NSError is already an class, and passing an pointer would actually have the effect of modifying this object inside implementation of -save:, where's the point of passing an pointer to an pointer here? What's the advantage /...
Hi.
I have trouble with deleting all layer's sublayers. I do this manually, but it's unwanted code clutter. I found many topics about this in google, but no answer.
I tried to do something like this:
for(CALayer *layer in rootLayer.sublayers)
{
[layer removeFromSublayer];
}
but it didn't work.
Also, i tried to clone rootLayer....
Hi all,
I've a MainMenu.xib and a MyDocument.xib. I need to dynamically populate some NSMenuItem's from my document controller but I'm at a loss on how to get to it from MainMenu.xib.
I've tried adding an NSObject to MainMenu.xib and make it an instance of my document controller but I can't populate the NSMenuItem's from the NSArrayCon...
I'm trying to post an image from an iphone app to a .Net webservice and I'm running into this error. I've already updated my web.config as per this kb article and I can successfully post to methods that take strings as params. My issue is attempting to post data with an image. I've tried posting this way and that way, but both ways I ...