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

Why Are Almost All iOS SDK Delegate Methods Optional?

I understand the pros and cons of optional vs. required delegate methods. But I was struck by how few of the iOS delegate methods are required. Is there some wisdom that the iOS SDK designers have that I don't? Is there something they're trying to…
Willy Pell
  • 41
  • 1
3
votes
1 answer

OpenGL on multiple displays

I'm using multiple NSOpenGLViews. All are set as the contentView of an NSWindow that is displayed on it's own screen. All NSOpenGLViews call a method -(void)render:(NSOpenGLView *)sender; declared in the class Scene. This class draws all the…
Fatso
  • 1,278
  • 16
  • 46
3
votes
3 answers

Drawing a bridge with Quartz 2D

I'm trying to draw the following image: Using this objective-c code: CGContextSetFillColorWithColor(ctx, [[UIColor redColor] CGColor]); CGContextMoveToPoint(ctx, position.X - (size.width / 2), position.Y - (size.height /…
VansFannel
  • 45,055
  • 107
  • 359
  • 626
3
votes
1 answer

Data sources and NSTableView

I know that table sources need a data source to hold the data that the tableview will display. Lets' say that I'm going to make my AppController be the data source of my tableview and that I make the connection in interface builder. My question is…
lampShade
  • 4,361
  • 8
  • 34
  • 50
3
votes
1 answer

Why change the name of getters and setters in Obj-C?

I've just learned that you can modify the automatically generated getter and setter names for Objective-C properties // boolean property of "door" object in game @property (strong, nonatomic, getter=isOpen) BOOL open; I understand how isOpen is a…
Dana
  • 1,198
  • 3
  • 14
  • 22
3
votes
2 answers

When declaration of property is unavoidable -- Objective C 2.0

Working on a maintenance project, I am struggling with lot of messy code. In the current assignment, I found that the previous developer has defined property (and synthesize) for each and every iVar and IBOutlet of the class. As per my…
viral
  • 4,168
  • 5
  • 43
  • 68
2
votes
2 answers

Is there any way to DRY my Objective-C iOS ViewControllers?

I have a group of controllers, most of whom share similar functionality. For example: Controller A has method 1 and method 2. Controller B has method 2 and method 3. Controller C has method 1 and method 3. Subclassing is not really an option here…
bodacious
  • 6,608
  • 9
  • 45
  • 74
2
votes
1 answer

Why method invocation in Objective-C called message passing?

Is it like if I "pass a message" between two objects and if they happened to be have been instantiated in different threads then the invoked method would still run in its object's thread?
AppleGrew
  • 9,302
  • 24
  • 80
  • 124
2
votes
1 answer

storing variable values in NSMutableDictionary

we do have a calculator app in ios5 and we want the users to set their own values to our calculators variable buttons such as "x" or "y". For example the user set "x=5" and wants to do the calculation of" x + 5 = " the result should be 10 anyway.how…
2
votes
2 answers

How can i get the itinerary between two places?

I have an app with a MapView that implements some annotations that i get it from an API and also i tell the MapView to show the current location of the user. so what i want is getting the itinerary from the user location to a place that the user…
keep on you
  • 310
  • 6
  • 21
2
votes
2 answers

How to login to iPhone application through Google,Windows Messenger, Linkedin, Orkut, AOL and My Space

I am workin on an app ,In which user is facilitated with login through any social network account (just like stackover facilitated with login through facebook, Google etc )such as Twitter, Facebook, Yahoo, Google, Windows Messenger, Linkedin,…
Talktobijju
  • 450
  • 1
  • 5
  • 14
2
votes
3 answers

Returning an Array Of ImageViews (IPhone)?

I understand that: (NSArray *)methodName would return an array. (UIImageView *)methodName would return an imageview. But how about if I wanted to return an Array of ImageViews?
PCoder123
  • 364
  • 2
  • 11
2
votes
0 answers

Protobuf missing 'list' suffix in Objective-C generated code

I'm using protobuf 2.6.1 with this plugin which I compiled myself. In the project I'm working with Protobuf models are already present. I tried to regenerate the files using the following command: protoc…
2
votes
2 answers

technique to create falling letters and words

I'm looking for a technique to create a window with letters that drop from top to bottom, forming words as they go. This is similar to the scroll screens used in the Apple Retail Stores. What language(s) should I use? Are their techniques I can…
ICL1901
  • 7,632
  • 14
  • 90
  • 138
2
votes
1 answer

Document Interaction not always triggered from Safari

Through Document Interaction, my iOS app registers itself as an editor of .sgf and .ugi files. So I can open such files from - let's say - attachements in Mail. However, when trying the same from Safari, I get inconsistent behavior. I try to open…
Kris Van Bael
  • 2,842
  • 1
  • 18
  • 19
1
2
3
11 12