Questions tagged [objective-c-2.0]

Objective-C 2.0 is a revision of the Objective-C language created by Apple to include, amongst other things, an enhanced syntax.

Objective-C 2.0 is a revision of the Objective-C language created by Apple to include, amongst other things, an enhanced syntax.

177 questions
0
votes
1 answer

how to run applications using device id in iphone

Hi friends I tried this but could not find clear solution . I searched on some links on Google but didn't get clear idea how to do that. My client is on my head he is asking to install app using device id only. Can anyone suggest me how to do this?
0
votes
1 answer

Modal Sheets & Modal Return Values

I'm running an alert dialog as a sheet. The problem is, I only want to continue program execution when the sheet gets an answer. So I added default modal code from Apple : NSModalSession session = [NSApp beginModalSessionForWindow:aWindow]; for…
Fatso
  • 1,278
  • 16
  • 46
0
votes
2 answers

Can someone explain this Objective C @property syntax?

Reading over some example Objective C code just now. @property (nonatomic, strong) IBOutlet UILabel *descriptionLabel; I understand that here we're declaring a property named descriptionLabel. The property has two attributes: nonatomic and…
bodacious
  • 6,608
  • 9
  • 45
  • 74
0
votes
1 answer

Working with multiple displays?

I have zero experience with multiple displays & cocoa. Feel free to share any handy links, tutorials. What I need is this : I'm trying to fill all displays with a full screen, transparent window. What I'm afraid for, though, is that all the displays…
Fatso
  • 1,278
  • 16
  • 46
0
votes
1 answer

NSStatusWindowLevel disabled when presenting window sheet

I'm using an NSWindow and set it's level to NSStatusWindowLevel : [aWindow setLevel:NSStatusWindowLevel]; Now, when I present a sheet (self is my sheet window) modalAnswer = 0; [NSApp beginSheet:self modalForWindow:aWindow modalDelegate:self…
Fatso
  • 1,278
  • 16
  • 46
0
votes
1 answer

How do add days to a date in ObjC?

I want to find the future date after adding a number of days to another date. So if I have this: NSDateComponents *pastDate = [[NSDateComponents alloc] init]; [pastDate setMonth:12]; [pastDate setDay:23]; [pastDate…
Tremaine
  • 45
  • 11
0
votes
3 answers

How can i use Maps directions app?

I have an app that display locations on the MapView, and i want to get the direction of a specific location from my current location using the Directions APP on the iPhone. how can i do that?
keep on you
  • 310
  • 6
  • 21
0
votes
1 answer

ViewDidAppear doesn't work when i call it in iOS 4.3?

I have a UITabBarController that include four UIViewController and when i want call viewDidAppear it doesn't work. I don't why this happens just for iOS 4.3? // UINavigationController *nav3 = [[UINavigationController alloc]…
keep on you
  • 310
  • 6
  • 21
0
votes
1 answer

Core Data and Undo action with Xcode 4

I have few Core Data projects for MacOS started with Xcode 3 that behaves well in Xcode 4, especially for Undo/Redo management. But now I started a new Core Data project from Xcode 4 and I'm facing problems with Undo: the Undo and Redo menu items…
max.me
  • 105
  • 7
0
votes
2 answers

How to get the amount of days from an NSDate to now?

I have some reviews with the date that has been created, so I want that date be an amount of days and after be an amount of month. this is the code i get the date with: NSDateFormatter * inputFormatter = [[NSDateFormatter alloc]…
keep on you
  • 310
  • 6
  • 21
0
votes
1 answer

Implement the application between the calling on the iphone

I hope my application(e.g: appA) can call Third-party application(e.g: appB),When appB is finished running,I hope can get appS's running result(success 、fail or error) and the result tell appA,go back appA then continue to run appA,Now I know I…
Ryder.Cheng
  • 21
  • 1
  • 3
0
votes
2 answers

EXC_BAD_ACCESS when add vCard data to AddressBook

I follow this instruction to add vcard data to addressbook, in my project. iOS 5. Adding vCard data directly to the system Address Book The code run ok, and add vcard data to adressbook in my ipad2 and iphone4s, however, xcode show this error:…
Dyego
  • 1
  • 1
0
votes
2 answers

How to not include file extension while reading from Document directory?

I am developing an application where i am creating some random .txt file which ultimately stored as a txt file format. Now for reading these file i am using this code NSString* documentDirectory =…
user930195
  • 432
  • 1
  • 5
  • 19
0
votes
1 answer

AppDelegate and action targets (Objective-c 2.0 and Xcode)

Is the app delegate the only place to put action methods for controls? Can other user created objects be targets as well? So if I click a button and I want an object I created to respond, where would I create the object and how would I assign it to…
rubixibuc
  • 7,111
  • 18
  • 59
  • 98
0
votes
1 answer

NSMutableString and setting up accessor methods Objective-C 2.0

There is a copy attribute for synthesised accessor methods ex: @property (copy) NSMutableString *string; When assign using this setter method it seems to always call the copy method, even though I would like to create a mutable copy of what ever I…
rubixibuc
  • 7,111
  • 18
  • 59
  • 98