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
2
votes
1 answer

Type conversation of byte array between Objective-C and Swift

I am using a library written in Objective-C which has a property that is organised as a struct and includes a byte array: typedef struct { byte ID[MAX_ID_LENGTH]; short Length; ... } RFIDTag; MAX_ID_LENGTHis…
comar
  • 43
  • 6
2
votes
0 answers

Creating an app icon for a backwards compatible application

I tend to write apps that work on OSs from Snow Leopard to El Capitan, though the former has a 3D dock and the latter a flat design one. I've tried to draw icons that display ok on both, but 'ok' is about as far as it goes. Pixelmator's old icon…
2
votes
1 answer

Is count a property or not?

In the official google style guide for objective c, it's mentioned that Dot notation is idiomatic style for Objective-C 2.0. It may be used when doing simple operations to get and set a @property of an object, but should not be used to invoke…
2
votes
2 answers

Screenshot of animated Image

I have one imageview which is changing on every few seconds with curl animation. I want to take the video of that so for that what I am doing is, I take the screenshots every seconds and create video from that. But I am unable to take the screenshot…
2
votes
2 answers

Reloading Data in a UITableView when pressing a UITabBarItem

I have a UITabBarController as part of my app delegate and I want to trap when the user touches a specific tab (the favourites) and force the table within it to reload the data. What would be best practice in this instance? I have added the…
2
votes
1 answer

VoIP equivalent of Coretelephony

I have Coretelephony working for monitoring incoming and outgoing calls, however, I also needs this functionality for VoIP calls. Is there are framework with similar features as coretelephony but for VoIP calls?
TheBat
  • 1,006
  • 7
  • 25
2
votes
3 answers

Warning when dismissing view controller programatically

I have a TableViewController with a button that triggers an [NSURLConnection sendAsynchronousRequest...] event, and also loads a modal segue through performSegueWithIdentifier:sender: which targets a small view controller. The purpose of this…
2
votes
5 answers

Best practice on using @property ivars

Could someone share some knowledge on whats best practice / code convention on using @property iVars in init methods or designated initializers? please see my example: @interface MyClass () @property(nonatomic,strong) nsstring…
Garry.S
  • 201
  • 1
  • 3
  • 9
2
votes
3 answers

UIView subclass not being deallocated

I have a subclassed UIView which is not being deallocated. I know that only one class is creating an instance of my view. I have an NSTimer ivar in my view. If I comment out that timer and when I tap a cancel button that is on this view controller,…
user619891
1
vote
3 answers

textShouldEndEditing does not get called in NSTableView

When a user adds a new managed object, it shows up in a table, which scrolls down to the new entry, and the name of the new object (a default value) goes into editing mode. I need to check if the name of the new object is unique in the datastore, so…
Fnord23
  • 325
  • 2
  • 18
1
vote
1 answer

i Got NSInvalidArgumentException error in my app... anyone good at this please help me

I am trying to add different level on my game. while playing game score will go up and reach certain score then level will be changed. That was my plan but i wrote a code like 'spiderupdate:(cctime)delta' with if code as you can see. I am pretty…
user1292919
  • 193
  • 8
1
vote
0 answers

Displaying and hiding an MPMoviePlayerController

I'm using the code in this thread to hide a full screen MPMoviePlayerController after the user taps "done". Unfortunately,when he does so, the movie disappears, it also stops, but the screen remains black. Why? Strange thing happened : I changed…
Fatso
  • 1,278
  • 16
  • 46
1
vote
1 answer

2D Drawing on Transparent NSWindow

I have a transparent window and want to do 2D drawing in it. I'm considering two options : Quartz 2D OpenGL As I have no experience with Quartz 2D at all, I'm wondering : would it give me better performance? My scene is made out of lines, circles…
Fatso
  • 1,278
  • 16
  • 46
1
vote
1 answer

How to create randomly selected NSString "package" for iPhone app

I'm just delving into Objective C and Cocoa Touch and I'm trying to build an app for personal use. My goal is to create an app that displays a randomized NSString in a center window on the iPhone screen while also displaying a scrollable list of…
Orpheus Mercury
  • 1,617
  • 2
  • 15
  • 30
1
vote
4 answers

UITextField - can not input text. Keyboard does not responds

I have UIViewController with UITextField in it. #import @interface TextMemoViewController : UIViewController @property (unsafe_unretained, nonatomic) IBOutlet UITextField *textMemo; @end In implementation…
boder
  • 47
  • 1
  • 4
1 2
3
11 12