I have a class that looks like this:
@interface Properties : NSObject {
@private
NSNumber* prop1;
NSNumberBool* prop2;
//etc
where NSNumberBool is a typedef:
// in MyApp_Prefix.pch
typedef NSNumber NSNumberBool;
I have all the required @property and @synthesize declarations to make prop1 and prop2 properties.
Everythin...
hey any one suggest me good book for to learn objective-c
Thanks
...
How to declare and use global variable with extern in Objective C and other files.
I want to define and assign the global variable in 1.h file and 1.m and want to use that in 2.m file
I am defining
1.h
extern const NSString *str;
1.m
NSString *str=@"HELLO";
in 2.m I am importing the 1.h
want to access str but giving me 2.o err...
Hi there,
Still an iphone dev starter but trying.
I would like to have the user touch the screen at which point a pin (dot) will be placed on the view.
I have accomplished this (yey) but i would like to have snap to grip effect, and can not come up with a solution.
This is how i am placing that dot:
CGPoint drawPoint = CGPointMak...
Hello,
I want to programmatically initialise my tabBarController to the last tab selected by the user. This works OK for my standard tabs, but if the uwer was on the "more" tab, I cannot figure out how to initialise it as this tab doesn't (to my knowledge) have an index).
Is anyone aware of a way of doing this?
...
Why are people using
@interface ViewController : UIViewController
{
@private
UIButton* button_;
}
@private declarations in public headers? Declaring a variable inside an implementation yields the same result, doesn't it? It feels strange to me, I thought a public header should only contain really public members. What to do with ...
I'm getting a "new" kind of error in the provisioning hell from iPhone. Does anyone have an idea what's going on .. because reinstalling , redownloading of the profile doesn't work.
I've uploaded a screenshot.
http://img94.imageshack.us/img94/1559/picture15f.png
So the part where it says cannot be installed on devices?
...
I seem to have the exact opposite problem than this question on stopping dock bounce.
I can't get my app to continually bounce the dock icon!
I too hate continually bouncing dock icons, but in this case if the user doesn't realise my app can't launch, they could potentially lose hours of time tracking data.
Here's my code that I've p...
Hi all!
I'm trying to write a Cocoa application which allows me to see what buttons I'm pressing on my Wii Remote. I also want to be able to receive Nunchuck-data and set the LEDs. Does anyone know where I can start?
Oh, yes I did some searches, but I couldn't find anything useful.
Thanks in advance.
...
Hola.
When I receive a list of MDItemRef items returned from a Spotlight query (in obj-c) I was wondering if there is an easy way to determine if they come from the OS install drive vs. an externally connected USB drive.
The basic premise is that I want to ignore anything from the local drive and only watch for files on external USB...
I'm experimenting with Obj-C blocks and trying to have a struct with two blocks in it where one block is to change what the other block does.
this is a really roundabout way to do something simple... and there may be better ways to do it, but the point of the exercise is for me to understand blocks. here's the code , it doesn't work, s...
I have a buffer of RGB unsigned char that I would like converted into a bitmap file, does anyone know how?
My RGB float is of the following format
R [(0,0)], G[(0,0)], B[(0,0)],R [(0,1)], G[(0,1)], B[(0,1)], R [(0,2)], G[(0,2)], B[(0,2)] .....
The values for each data unit ranges from 0 to 255. anyone has any ideas how I can go about ...
I am having problems with my textfield not flowing with the scene transistion. Basically my scene is transition with this call:
Scene* gs = [[[QuestionsScene alloc] initWithPage:2] autorelease];
[[Director sharedDirector] replaceScene: [SlideInRTransition transitionWithDuration:0.5 scene: gs]];
However in my init i have a textfield...
I cant understand what this warning I get on Xcode is about. Searching for it on google wasn't of too much help. If anyone has come across this warning before, it'd be great if I could get some hints on how I'd be able to get rid of it.
The (updated) screenshot is at:
http://imagebin.antiyes.com/images/0116033001255720169%5F90.png
Tha...
I am creating a program for mac that needs to generate reports and be able to print them as PDF files. I would rather find an already created library for this rather than hard-coding everything, but I can't find anything yet. Do you recommend any report generation libraries that can be used in Objective-C?
Thanks for your help!
...
Hello,
I'm learning thinking in start to learn Objective-C and i don't have a Mac(And i don't have plans to have one), but as i see that Cocoa is a very good framework to develop in Objective-C, i want to know: It's Possible To Develop Using Cocoa In Windows And Linux?
Thanks.
...
I would like to understand garbage collection in objective-c.
I know how to work with memory in C-like languages and in languages where I don't care about memory. But I don't understand when to use autorelease, retain, dealloc and everything else, so I get errors and memory leaks.
Could someone propose me a good tutorial to understand ...
Hi,
I am trying to make a code hard to crack using Objective-C on a Mac.
One of the things I have to do is to check to see if the application was cracked.
I am new to Objective-C and Xcode and whatever way I imagine to test my application I always end in a basic test that can be patched easily.
For example: suppose I am about to te...
I'm working on my first app and have a few questions on memory management.
First Question:
I'm working on an intro scene that looks like this
#import "Intro_Scene.h"
#import "Main_Menu.h"
#import "Label.h"
@implementation Intro_Scene
@synthesize logo,label;
-(id) init
{
self = [super init];
if(self != nil)
{
//Load logo image...
Hello,
I'm learning Objective-C using GNUStep in my Windows(Cygwin) and i have two files, one source and one make file:
include $(GNUSTEP_MAKEFILES)/common.make
APP_NAME = HelloWorld
HelloWorld_HEADERS =
HelloWorld_OBJC_FILES = main.m
HelloWorld_RESOURCE_FILES =
include $(GNUSTEP_MAKEFILES)/application.make
But when i run make in ...