The following code:
- (void) setTarget:(id)anObject {
NSLog(@"anObject: %@",anObject);
[super setTarget:anObject];
NSLog(@"Target: %@",[self target]);
}
has this output:
anObject: <DropZoneViewController: 0x15dd5770>
Target: (null)
This is in a subclass of NSControl. So what am I doing wrong?
What I'm trying to achi...
My Class
@interface sample:NSObject{
double x;
double y;
}
@property double x;
@property double y;
-(sample *)initWithX: (double)x andY:(double) Y;
@implementation
@synthesize x,y
-(sample *) initWIthX: (double)x andY:(double)y{
self = [super init];
if(self)
{
self.x = x;
self.y = y;
}
...
Hi
I am trying to create an NSArray of bool values. How many I do this please?
NSArray *array = [[NSArray alloc] init];
array[0] = YES;
this does not work for me.
Thanks
...
Hi guy's
I am getting Program received signal: “SIGKILL” Exception when I close my application in multitasking bar of my device.Can anyone suggest me why this happening and how to resolve it?
Anyone's help will be much appreciated.
Thanks to all,
Monish.
...
I'm sure there is a way to do this using blocks, but I cant figure it out. I want to to turn an NSDictionary into url-style string of parameters.
If I have an NSDictionary which looks like this:
dict = [NSDictionary dictionaryWithObjectsAndKeys:@"blue", @"color", @"large", @"size", nil]];
Then how would I turn that into a string that ...
Possible Duplicate:
Load PDF from documents directory - iPhone
I am trying to load a file from the documents directory. Here is my code:
// Get Documents Directory
NSArray *searchPaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectoryPath = [searchPaths ob...
How to convert UIimage to base64 encoded string. i couldn't find any examples or codes with detailed regarding.......
...
Hi together,
i have a problem with my app when i send it to background via the home-button. I'll try to describe it shortly but completely:
I have an UIImage-pointer declared in @interface with following property:
@property (nonatomic, retain) UIImage *pauseImg;
This pointer is set to an image declared in viewDidLoad like this:
pa...
Hi all,
I want to broadcast some data bytes in particular wifi range through my iPhone app...so that every receiver in that particular range will receive that bytes. I am very much new to this concept.
Is there any sample app?
Thanks in advance...
...
Hi guy's,
I am getting the list of contacts from the Address book in that some contacts have images which are taken with camera they are very huge in size.I am displaying the contacts along with their images in a 3x3 rows and columns format.The problem is due to huge size of the images its taking time to load the images.Can anyone sugge...
Hi,
I have a view and I hv a button on that.I need to have a drop down box on clicking that button. How to implement drop down box??
Drop down box shuold have a table view.When I click rows in table view(after drop down box will open) I want to get text which will be there on the clicked row cell on a view where I had button. How to do ...
When I call
NSDate *now = [[NSDate alloc] init];
in order to get the current date and time, I check it with:
NSLog(@"Date now: %@", now);
the date outputted is one hour in the past.
2010-10-08 12:04:38.227
MiniBf[1326:207] Now: 2010-10-08
11:04:38 GMT
Is my time zone set incorrectly somewhere perhaps?
Thanks!
Micha...
Hi
Basically my app lends itself perfectly to a tabbarcontroller, but I do not want to use the default tab bar. Instead I have created nice graphical drawings of tabs which I want to use as the controls for my app... Does anyone know of the best way to do this? Am I goin to have to write all the functionality for my control from scratch...
Hi iphone Developers,
I'm working with the application thats having date & time difference Calculation.
I'm using 12 hours format(am/pm).
Its working fine with my native.The same while i'm using in US if select the date & time for e.g.12.00pm(Us time) it is automatically set to 11:30am(Indian time).
How can i overcome this issue.I ne...
Possible Duplicate:
Load PDF from documents directory - iPhone
I am trying to create a PDF from a file I have stored in the documents directory (1.pdf). Here is my code:
// Get Documents Directory
NSArray *searchPaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documen...
Hi,
I have made a birthday reminder application using localNotification.
It read the contacts from AddressBook & find out birthday list of that day(today).
i am repeating this app everyday using localNotification.repeatinterval(NSDayCalenderUnit).
It's working fine for me.
when i got a notification very 1st time it's badge no is 1(no pro...
I made a custom object that inherits from NSObject. Let's say I have an array of these objects. Then I want to make another object, that is a copy of one of the objects in the array. I do not want to simply point to an existing object in the array I want a copy. Is there an easy way to do this?
...
Hi,
I have array of strings in following format 5_5_a, 10_10_a, 0_0_a 1_1_a etc. I want to sort them in ascending/descending order. When I use sortedArrayUsingSelector:@selector(compare:) I get 0_0_a,10_10_a,1_1_a,5_5_a. I tried to parse each string into 5 5 a chunks and cast to a int then put that first element into array with addObjec...
I want to display a rotating 3D image. Are there any tutorials on how to do this? What tools can be used to create the 3D image?
...
How does the speed of a program when run in the simulator compare to a real iPhone or Ipod touch? Is it faster or slower?
...