Hello - I am new to Objective C and am having troubles adding a 2d int array to a NSMutableDictionary. The code errors with "incompatible pointer type" - I assume this is because setObject would be expecting an object..
Here is the code - I am trying to have a Dictionary containing my level data:
NSMutableDictionary *level = [[NSMutabl...
Looking for a good guide/ tutorial to begin Mac OS X app development, preferably using Cocoa and a language other than Objective C.
And maybe some tutorials for interface builder as well?
...
So this may sound like a really stupid question and I HAVE looked at the how-to from the parent website, but no matter what I do, I cannot get this program to even start to install...
I tried entering:
cd /opt/local/bin/portslocation/dports/class-dump
which returned a "this file/director doesnt exist" error, so i tried to get to it fol...
hii
i want to retrive user's current city name ... can any one help me ..
urget require ..
thanks
...
Hello everyone.
NSString *phoneNumber = @"2310234432";
I would like to create a new string out of the above but format the phone number according to the current localization. Is there a "native" way I can do this or do I have to write my own methods to return it for every locale ?
Thanx
...
Given the following sequence:
"normal %(b)BOLD% normal"
I want to transform this into the following string:
"0000000%(b)bbbb%0000000"
In other words, '%(b)' specifies that all characters up until the next '%' should be 'b'. All other characters should be '0'.
I have tried numerous approaches, including using the RegexKitLite regu...
Hello!
Until today I've developed and tested by myself all the versions of my app!
I would like to begin to release some versions for beta tester, to have a better product to release! But I really don't know how do that!
I had thought to upload the beta version on my website in a password protected folder and sent to my testers a notifi...
When you enter edit mode for a UITableView (grouped but I believe this applies for the other types as well), the cells shrink to the right to accommodate the delete selection buttons. For cells that I dont wish to add/insert/delete any content, is there anyway to stop this behavior? ie. the width remains fixed.
I've tried setting access...
Using touchesBeganWithEvent, touchesEndedWithEvent, etc you can get the touch data from the multitouch trackpad, but is there a way to block that touch data from moving the mouse/activating the system-wide gestures (similar to what is done in the chinese text input)?
...
I have a relatively simple application which I need to make native Mac OSX version of. I find it's easiest to learn from examples and I have never setup/developed/packaged a product on Mac yet. So, I was hoping to start from a project which has basic packaging scripts and includes as many components listed below as possible:
Installe...
I'm using Core Data to locally persist results from a Web Services call. The web service returns the full object model for, let's say, "Cars" - could be about 2000 of them (and I can't make the Web Service return anything less than 1 or ALL cars.
The next time I open my application, I want to refresh the Core Data persisted copy by call...
i've been playing some time with different builds of my application and there seem strange things to happen:
my app has a 5mb idle footprint. when uploading a file memory in size of the file is reserved. after the upload the reserved memory should be freed. now there are differences in the builds (gc = garbage collector):
32bit i386 n...
In Objective-c/Cocoa, how do I get the icon that Finder uses for the desktop (it looks like the black/pink nebula desktop image with a menu bar and dock).
I tried this:
NSImage *icon = [[NSWorkspace sharedWorkspace]
iconForFileType: NSFileTypeForHFSTypeCode(kDesktopIcon)];
But all I get is a blue folder with a ghost...
How would I make something in cocoa, where the user would type in "open" (space) "www.google.com" and it would open up a page that was directed to google. If the user didn't type open as the first word it would give an error. Also www.google.com could be whatever the user wants it to be. I know it may seem complicated, but it's similar t...
Whats the difference between:
@interface SomeClass : NSObject {
NSObject *something;
}
and
@interface SomeClass : NSObject {
}
NSObject *something;
? Also, what's the difference between Java's final and Objective C (C)'s const? And where should I declare static class members for the following situations: 1. When only the clas...
I am trying to read the header of an SWF file using NSData.
According to SWF format specification I need to access movie's width and height reading bits, not bytes, and I couldn't find a way to do it in Obj-C
Bytes 9 thru ?: Here is stored a RECT (bounds of movie). It must be read in binary form. First of all, we will transform ...
Hey all,
I have a HUD window that has some labels on it, and I want this to show when the user presses a button. I know this is simple, but I can't get it to show again unless I restart my program.
Sincerely,
Kevin
...
I created a Fetch Request template in the Predicate Builder in Xcode. Because there are some variables that I want to subtitute with the actual value when executing the request I am using the following method.
-(void)NSManagedObjectModel fetchRequestFromTemplateWithName:substitutionVariables:
My request contains a subquery and the var...
I am keeping track of pairs of ints and NSUIntegers as array indexes and other things.
Is there something analogous to CGPoint that is already defined?
I'm doing graphics stuff on iPhone if it matters.
...
Hi,
Someone on IRC told me I could create objective c objects directly from plist files in such a way that I don't have to specify strings everywhere for serialization/deserialization of the plist.
Does anyone know how to do this?
I'd like to simply have a plist like this
<array>
<object>
<id>my unique id</id>
<description>...