Continuing some helpful StackOverflow debugging, I have a zombie I need to track down:
2010-08-22 10:18:51.111 AppName[106:307] *** -[CFString release]: message sent to deallocated instance 0x19f3b0
How would one find the variable name or whathaveyou for the 0x19f3b0 Zombie?
...
I'm trying to get to grips with how Lua works, and how it can be integrated into a project, like an Obj-C based iPhone game. I've got Lua's source integrated fine, and have managed to use a simple manager class to translate function calls written in a .lua file, to Obj-C methods in the project.
I'm now a little stuck; I'm not sure how t...
Hello,
I am using ShareKit to allow the user to share their score on Twitter and Facebook in my iPhone app. However, it seems to crash shortly after sharing on either service. I get an console message which says:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFString rangeOfString:options:...
Hi there,
I am trying to make an iPhone application which can draw a path between two points (similar to Google Maps) but instead of the map i want to use any other image as a background, this path between the two points might not be straight and there might be multiple paths to get from one point to another then I want to draw the shor...
Would like to execute some code in a loop, but I want to pause it while a uiscrollview is scrolling.
I've created a BOOL named isScrolling that is set to "YES" in the scrollViewDidScroll method and is set to "NO" in the scrollViewDidEndDecelerating method.
I'd like to put the loop in the scrollViewDidEndDecelerating method, but have i...
I am following this tut
http://monoclestudios.com/cocos2d_whitepaper.html
to integrate coco2sd. I have created a project, modified the sources, added external directory to project, delete some files within and added coco2sd to proect as they requested.
There are a lot more to do by hands.
If I had to do it again oh my, so is there a t...
I have a clear history button which clears the data in plist. Now, loading is fine; I load it to an array.
Can I just use:
self.dataClear = NULL;
and save back the array to plist to clear it?
So that I can use
if([self.dataClear count] == 0)//if plist is empty
to check?
...
I am making a plug-in system for my application. It uses a framework with a class called vertCon, which currently looks like this:
@interface vertCon : NSObject {
NSProgressIndicator *progressBar;
}
/* May not be accessible by child classes */
@property (nonatomic, retain) IBOutlet NSProgressIndicator *progressBar;
/* These two ar...
I need to move a ball in a circular path. Any guide or tutorials that I can refer to on how do I go about doing it? Thank you.
...
I am trying to debug some stuff and while I'll also RTFM can anyone tell me how to check the allocation of a memory address in XCode? The text I automatically jump to on the error is not immediately decipherable. In an ideal world I'd like to figure out the name of the variable (or at least its contents) that I just re-released.
An exam...
I'm in the process of converting AMShellWrapper to my own application that runs an SH file that has userinput. Therefore, I need to send data to a running task.
Any ideas?
Elijah
...
I have a singleton object called PoolManager that loads and saves some data in a plist. Throughout my program when something needs to know about my pool, it asks the [PoolManager sharedPoolManager] for it's properties. I have a single view that's responsible for setting these properties and all others just read from it. It was all wor...
What do you think is the best (i.e. most memory efficient) way of playing a few 30 second audio files (m4v) from the bundle within an app to the external speaker? The audio files have to play automatically as soon a specific view appears.
There is no mixing, etc. going on. However I'm listening to the microphone at the same time via AVA...
i create a c array in the firstClass (this is created in the interface):
BOOL taken[25];
i then go to a different view and come back to the first one, except my c array is reset to 0,
how do i retain my array when i go back an forth between views?
...
Are selectors in objective - c just another way to send a message to an object? I really don't understand why or how to use them.
...
Hello,
I am playing with an app that uses Core Data and NSManagedObjects to populate a UITableView. There is only one class in my application, called Event. I have created the following custom instance method on Event:
- (BOOL)isExpired {
return ([[self.endOn dateAtEndOfDay] timeIntervalSinceNow] < 0);
}
I would like to limit t...
hi, if i have 2 NSMutableArray declared in .h, synthesize at .m files,
how can i copy whole contents of array 1 to 2? actually the same array.
can tried using this code only:
[self.data addObjectsFromArray:self.temparray]
to copy data from temparray to data.
doesn't seems to work.....
...
My iPhone App is socket based and receives a continuous, non-delimited stream of XML documents one after the other in which I intend to parse with the event-based NSXMLParser.
Example: 2 documents one after the other
<?xml version='1.0' encoding='UTF-8' ?><document name="something"><foo>bar</foo></document><?xml version='1.0' encoding=...
- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientat ion duration:(NSTimeInterval)duration {
UIInterfaceOrientation o = self.interfaceOrientation;
if ((o == UIInterfaceOrientationPortrait) || (o == UIInterfaceOrientationPortraitUpsideDown)) {D = 1;[self setPaging];}
if ((o == UIInterfaceOrienta...
For Web Applications I use Ruby on Rails. And now it's time to see if I can code Desktop Applications with Ruby.
So I wonder which one I should choose.
The way I see it is MacRuby+IronRuby vs JRuby.
The former lets me have desktop applications for both Mac and Windows while the latter lets be have in both, but only learning one tool.
...