Hello, I'm making an application for someone, and theres some things I'd like to monitor. I have NSLogs all set in place for each action, but I want to be able to send those to a console or something. Is there anyway of doing this? Also I don't want the user to know about it, I'm monitoring this because I gave the user a password for an ...
I've been creating iPhone apps for a while now, using basic transformations (rotations, scale, etc) but now I'd like to do something a little more complex.
Maths really isn't my strongest point... but I was wondering how I might go about adding 'perspective' to a UIView (see the image below). I quickly mocked the screenshot up using sk...
Hi all,
There is a previous SO post regarding setting up error domains for your own frameworks, but what is the best practice regarding setting up error domains and custom error codes for your own project/app?
For example, supposing you're working on a Core Data-intensive app with lots of validations, should you just stick with the "of...
Hello,
I'm looking for a demo project/tuturial of a table view where the cells have several textboxs so it looks like a grid. each line can be edited and save(locally but DB is better).
I found this project before ... but I lost it :_(
I've looked for it in the web for hours now and if you can help me I would appriciate it alot
I thi...
What resolution does in-app artwork need to be to make use of the high-resolution iPhone 4 display?
...
I would like to create a gradient UITableViewCell background like the default Clock app that comes on the iPhone. I am not exactly sure how to accomplish that. Do I create an image and set it:
cell.contentView.backgroundColor = [UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"background.png"]];
or is there another/better app...
Hello,
Is there an easy way to load, play and control an mp3 file from cocoa? Tried googling it, but, as all things apple, i get messy results and have no idea where to start. As i understand, there's and NSSound, but it has lots of limitations and then there's CoreAudio, but it's very difficult. So can someone point me in a right direc...
Hey,
I Have the following code:
-(void) changeAnimation:(NSString*)name forTime:(int) times {
if(currentAnimation != @"attack")
{
id action = [CCAnimate actionWithAnimation:[self animationByName:name]];
id repeatAction = [CCRepeat actionWithAction:action times:times];
currentAction = [self runAction:repeatAction];
lastANimati...
I have a UITableViewController (OnTVViewController) who's viewDidLoad is similar to below (basically parses some XML in the background and shows an activity indicator while this is happening).:
- (void)viewDidLoad {
OnTVXMLParser *xmlParser = [[OnTVXMLParser alloc] init];
/* Runs the parse command in the background */
[NSThread detachN...
I have a custom iPhone application which doesn't rely on UIKit in any way (it is not linked to UIKit). This means that I'm not using UIApplication and therefore not calling UIApplicationMain.
The problem is that when I create a timer it never fires. The timer is created like that:
[NSTimer timerWithTimeInterval:10 target:self selector:...
I am fairly new to Objective C and iOS programming but am constantly trying to learn as much as I can.
I am about to start an iPad project which will involve storing large amounts of data which will need to be exported to one extremely large excel spreadsheet.(it's for a friend....they currently enter massive amounts of data into excel ...
Is there a way to include an objective-c header from a cpp? Because when I try to #include "cocos2d.h" from a cpp .h file, a lot of errors complaining about @'s and -'s are showing up.
Can c++ files include obj-c headers like that?
...
I finally understand whether I must release an object, and how to keep my retain counts as low as possible in a trivial application (by knowing whether the object comes back with an extra 'retain' already called or not). So the NARC rules are working pretty well in that regard.
On the other hand, I can't wrap my head around whether to r...
NSString *r1=[r11 text];
NSInteger intR1=[r1 intValue];
ig=ig+(200-intR1);
I have a situation here where I need the following calculation to happen if [r11 text] will give the following output for example...
1:55...I want the calculation to be (2:00-1:55) = 5
2:03...I want the calculation to be (2:00-2:03) = -3
1:49...I want the cal...
I'm coming from SQL and n-tiered systems and trying to work through how to use Core Data effectively for this usage:
insert new managed object - I'm having no problem there
delete existing managed object - I'm having no problem there
editing existing managed object - problem.
The problem is how do i identify that object as unique and...
Possible Duplicate:
How do I concatenate strings in Objective-C?
I have this:
[NSURL URLWithString: @"http://myurlc.co.uk/?no="]]
I basically want to do this:
[NSURL URLWithString: @"http://myurlc.co.uk/?no=" & tmpString]]
How would I do that in Objective-C?
...
I'm writing iOS Objective-C code. I prefer
__weak MyClass *myWeakIVar;
to, e.g.
MyClass *myWeakIvar; // weak
Not only does it read better to me, but if I ever use this code on a garbage-collected platform, I get the benefits of the __weak directive. Are there any downsides to this? Put another way, is it presently equivalent to a n...
Whenever my method sets an object to onTouchEventReceiver, it gets lost when another method is called by another thread.
//In header
id onTouchEventReceiver;
SEL onTouchSelector;
- (void) setOnTouchSelector:(SEL)sel withObject:(id)obj
{
NSLog(@"setting obj to %@",obj);
onTouchSelector = sel;
[self setOnTouchEventReceiver:ob...
In a situation where I need to save all data members in a NSDictionary, does it make more sense to put structs (custom types, or even scalars i.e. CGPoint) in my own wrapper (not NSValue), so I can avoid the overhead of encoding/decoding it every time I get or set the member?
For large structs (16 floats) the savings is IMO significant....
hi, i trying to make a osx application that just have one window and it will always on the top of screen.
anyone knows how to achieve it? thanks.
...