apple

Viewing a dynamically-allocated array with the Xcode debugger?

Let's say I have an array in C++: double* velocity = new double[100]; Using the GDB command line, I can view this array with the command: > print *velocity @ 100 and it will print a nicely-formatted list of all the double values inside the array. However, when using the Xcode debugger, the most it will do is treat this as a pointe...

Minimum spec laptop for iPhone development?

Hi all, I'm looking into iPhone development. Most likely I'd be working on the move, so need a laptop to develop on. What would be the minimum spec laptop I could use to develop for the iPhone? Most likely the development would include OpenGL work. Thanks. ...

How to build Apple's GCC on Linux/Windows?

I don't have a Mac, but I have an iPhone. I want to develop applications for iPhone. After some research I think I need just the headers and library from the free SDK, and a GCC build that supports ARM/Mach-O. Apple released the code for GCC used in the iPhone SDK (they had to), So I think if I could build it on Windows or Linux, I can u...

Where can I find a detailed Apple App Store policy?

Including under which circumstances applications are rejected, and how much of a percentage Apple takes (widely distributed as 30%, though I can find no mention of it on their site). Thanks! ...

Is it possible to develop iPhone apps with a Hackintosh?

I really want to get started, but man are those Macs expensive...especially for a non-US like me. I'm thinking about trying to run OS X in VMWare. But would this prohibit me from doing iPhone development? I will gladly buy a copy of OS X to give Apple their due... Thanks, Makil ...

Is there a way to query the current brightness level of a the MacBook LCD?

The idea being that, once the brightness passes a certain level, one could switch to a different visual scheme to give greater visibility. Also, if it could be some sort of listener type thing, that would be even better, but I'll take what I can get. ...

Custom iPhone camera controls (not using UIImagePickerController)

While I understand that in order for an iPhone application to be accepted on the App Store, one requirement is that only documented libraries are to be used. If this is the case, how are certain applications such as "Night Camera" and "Camera Plus" using a camera control that seems to be something other than the one contained within UII...

Developing on a MacBook?

Does anybody out there develop on a MacBook? I'm trying to decide whether I should spend the extra money for the MacBook Pro and am torn. For everyday stuff like web surfing, watching vidcast and such I would prefer the MacBook. ...

Upgrading Python on OS X 10.4.11

I downloaded a package installer for Python 2.6.1, but when I use the python command in terminal (bash) Apple's shipped 2.3.5 version loads up. How can I get 2.6.1 to load up instead? ...

Reinstall development stack

I need to relocate my iPhone development stack to a different machine. What do I need to do in preparation and are there any gotchas? Thanks! ...

UISegmentedControl Behaviour

Hey guys, A quick question about the UISegmentedControl class on the iPhone. Hopefully, some may have noticed how in its default state with 2 segments, the segmented control still will toggle even if the user taps on a segment that is currently selected. I've seen UISegmentedControls in apps that negate that behaviour and don't toggle...

UIActionSheet - Unknown Number Of Buttons, How to know what to call?

Hey guys, I have a UIActionSheet with an undetermined number of buttons. I'll need to use the delegate method buttonClickedAtIndex: (or something similar) to decide what method to call when the user clicks a button. The problem is: how do I decide which button is clicked when different buttons will appear at different indexes in differ...

Is there a quick way to check current iPhone App Store rankings?

I'm tired of browsing through the App Store checking my rankings in different categories, and counting the pages to calculate my app's rank. I saw that sites like apptism.com show the "popular rank" of each app, although they only seem to update it once a day. How do they get this data? ...

Best Method of Persisting Custom Objects

Hey guys, I have a custom object that simply inherits from NSObject. It has 3 members - two floats and an NSDate. My app is going to have an array with a number of these objects kicking around, and I need to persist it between runs. What is the best way to accomplish this? I've thought about using the SQLite db, but I'm thinking that ...

Are there any good online tutorials for making iPhone apps?

I am kind of new to making iPhone apps. I have already made a few small ones. But the best way I learn is by completing tutorials (not just broad/general topics, manuals, class definitions, etc). Are there any good tutorials that just walk through making an iPhone app? ...

MVC and Java in comparison with more strict MVC languages

I've been told Java is not the greatest pick to follow an MVC architecture. I believe I've seen some Java framework solutions to ease this roadbump. However, I a bit confused on why this is. More specifically, why Java's attempt at MVC is often mocked as a "wannabe" approach. I come from a ObjC background (w/ Cocoa of course) and would l...

Can I have multiple XCode versions installed?

Is it possible to have more than one version of XCode installed at the same time? If so, please post any tip, tricks, or potential issues to watch out for. EDIT: The reason I want to install multiple versions is to try out the new sdk beta, but if the new XCode is buggy I want to be able to use the older version for my existing proje...

What does the 'k' prefix indicate in Apple's APIs?

I've run across many examples of Core Foundation variables named k + someVariableNameHere or k + APILibraryName(2Char) + someVariableNameHere. What does this prefix K indicate? Examples include: kGLPFAStereo kCollectionLockBit kSetDebugOption ...

MacBook Air + Vista + External Project == 640x480 only

Having a problem with my MacBook Air when it connects to an external display. Basically, the only resoution it provides me in 640x480. Tried two different projectors. The problem is only with Vista - OSX seems to work fine! :( If I connect to a standard monitor, then I have full resolutions. I've applied the DisplayPort > VGA Adapter ...

Do iPhone developers qualify for ADC hardware discount

If so, what do you need to provide online and in a real apple shop. I am gonna check it myself, but am asking for a heads up. ...