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

Designated initializer vs lazy initialisation in Objective-C

I'm new to Objective-C. I have a Class that has several properties that need to be initialised to default values. It is not guaranteed that these properties will necessarily be used in the lifetime of an instance. Would you recommend initialising to…
retrodev
  • 2,323
  • 6
  • 24
  • 48
0
votes
1 answer

Notification When NSApplication receives 'miniaturizeAll' call

Is this possible, like when you call 'hide:' it calls 'applicationWillHide:'? My application uses a variable amount of windows, depending on the amount of available screens, so it doesn't miniaturize those NSWindow instances when 'miniaturizeAll:'…
Fatso
  • 1,278
  • 16
  • 46
0
votes
1 answer

Full-Screen, Transparent App & Main Menu Interaction

I'm making an app that covers the screen, so I have a window covering the screen completely, with its level higher than the main menu. So I draw over the main menu, but I want the main menu to be accessible, still. How would I do so?
Fatso
  • 1,278
  • 16
  • 46
0
votes
1 answer

Display a different background image at certain times of the day (iOS)

For my app, I want to display a different image and text for different times of day. How would I go about doing this? Thanks!
user2329093
0
votes
1 answer

Cocoa Scrolling Image Menu

I want to make a menu with a wide image that scrolls horizontally (it's a continuous image). What technique could I use for this? Thanks!
Fatso
  • 1,278
  • 16
  • 46
0
votes
3 answers

I intend to call default init method in init method with arguments

I intend to call default init method in init method with arguments, in iOS. like this: -(id)init{ self = [super init]; if (self) { Office = [[NSString alloc]init]; } return…
Zain Syed
  • 44
  • 4
0
votes
2 answers

custom framework in xcode 4.6

I would like to create my own framework to hide the implementation of the classes and to be able to re-use the the classes. Did they add the ability to create these in 4.6?
Nick Turner
  • 927
  • 1
  • 11
  • 21
0
votes
2 answers

Difference between two dates for countdown timer implementation

How is possible that the difference between two dates is wrong (2013-04-04T19:14:58+02:00-2013-04-03T18:14:58+02:00) ? The result of the code is 01 days 06 hours 46minutes 02 seconds the result is totally wrong the right answer should be 01…
molwiko
  • 323
  • 1
  • 6
  • 14
0
votes
1 answer

iPhone SDK: loading UITableView from SQLite - creating array from SQLite

this is a follow up forr iPhone SDK: loading UITableView from SQLite I am planning to use following code to load SQL data to the array. Each element of the array will be a class represening each database entry: @interface Row : NSObject { int…
leon
  • 1,412
  • 2
  • 17
  • 26
0
votes
2 answers

Why is my primitive type state being preserved between instances?

I have a view controller with a BOOL property (not a pointer) which I assumed would be NO or just garbage seeing as though it doesn't get assigned in viewDidLoad. The BOOL gets assigned when it is needed. When the view controller gets deallocated…
0
votes
1 answer

Custom UITableView Index Headers on iPhone

I've seen apps that take the UITableView index header (i.e. the thing in the iPod application that separates songs starting in A, B, etc.) and put their own custom image as the background. Such apps are the myStarbucks app and the What's on TV? app.…
Mike
0
votes
1 answer

Implicit object pointers in Objective-C

I'm teaching myself Objective-C 2.0 using Apple's Programming With Objective-C guide. I have a question regarding what I believe to be implicitly created pointers. If I were to rewrite the example code: @implementation XYZShoutingPerson -…
retrodev
  • 2,323
  • 6
  • 24
  • 48
0
votes
1 answer

Objective C: releasing objects basic questions (non-ARC)

I have two rookie questions about memory management in non-ARC project without GC: in Objective C,when I 'autorelease' object and return it from method, should I 'release' it in the "parent method" calling the method retuning the object? The second…
o..o
  • 1,789
  • 5
  • 31
  • 59
0
votes
2 answers

Show baseball stats in a table for iphone app

I want to know how to enter baseball stats manually in a table like hr, RBI AVG with tabs and all that. Is there a table that i can use for my iphone app? I want to use a navigation table and link to a table with the stats in it.
Zeeshan Raja
  • 145
  • 6
  • 13
0
votes
1 answer

How to Make the KeyBoard Disappear while using a UITextView in iPhone

I am using a UITextView and I am confused about making the keyboard to disappear. Do I need to use some kind of a notification to make it disappear. Thanks
felix
  • 11,304
  • 13
  • 69
  • 95
1 2 3
11
12