apple

What's a good machine for iPhone development?

I'm going to be working on some iPhone apps so I've been given a golden ticket to buy a Mac. However the golden ticket isn't worth that much, and I'm thinking iMac. Now, Macs are great, I love 'em and use 'em at home, but I know that the iMac is geared more towards the average consumer than the professional. Is an iMac going to be powerf...

InputManager on OS X

I was wondering if InputManagers are still part of Leopard and if there is a good example that would show me what are the use of it? ...

Is there anything similar to the OS X InputManager on Windows?

Is there anything similar on Windows what would achieve the same as the InputManager on OS X? ...

Should you register new extensions with Apple?

Do I need to register new extension types with Apple before I release an application that would create them on OS X? ...

Opening a non-standard URL in a Cocoa app

In an application that I'm writing I have some code like this: NSWorkspace* ws = [NSWorkspace sharedWorkspace]; NSString* myurl = @"http://www.somewebsite.com/method?a=%d"; NSURL* url = [NSURL URLWithString:myurl]; [ws openURL:url]; The main difference being that myurl comes from somewhere outside my control. Note the %d in the URL ...

Keyboard shortcut for restoring applications from the Mac OSX Dock?

Is there a keyboard shortcut to restore a minimised application window from the Dock? Almost all Apple Mac OSX applications respond to the Apple+M command which minimises the current application window to the Dock, which is fine. I can then use Alt+Tab to cycle through my running applications - including the minimised application, but ...

Best way to write a Safari 4 Extension [obsolete]

What is the best way to write a Safari extension? I've written a couple XUL extensions for Firefox, and now I'd like to write versions of them for Safari. Is there a way that would allow you to add buttons or forms to the browser UI, since this is not possible with an Input manager or Service menu? UPDATE: The best way to write a Safari...

Xcode: Using a custom framework

The error I'm getting: in /Users/robert/Documents/funWithFrameworks/build/Debug-iphonesimulator/funWithFrameworks.framework/funWithFrameworks, can't link with a main executable Cliff notes: trying to include framework doesn't want to link More detail: I'm developing for a mobile device... hint, hint using Xcode and I'm trying to m...

How can I dynamically create a selector at runtime with Objective-C?

I know how to create a SEL at compile time using @selector(MyMethodName:) but what I want to do is create a selector dynamically from an NSString. Is this even possible? What I can do: SEL selector = @selector(doWork:); [myobj respondsToSelector:selector]; What I want to do: (pseudo code, this obviously doesn't work) SEL selector = ...

Tax on iPhone developer payments

Anybody know how Apple deals with taxes when they pay developers their 70%? Do they take out taxes before paying you your share or is it simply up to the developer to state the amount on their taxes? ...

CALL -151 What did it do on the APPLE ][

A long time ago I had an apple ][ . I remember the command call – 151 But I can not remember what it did ? ...

Can I browse other people's (Apple) bug reports?

When I log into the Bug Reporter tool that Apple has, I can only see my bugs. I normally like to search the system to see if other people have filed a bug before posting, but I can't see any way to do this. I can only see my bugs, and post new bugs, but I can't see any way to browse or search the whole bug system. Is this an Apple restr...

Adding custom log locations to the OS X console application...

After searching online, the best solution I've found so far is to just make a symbolic link in either "/Library/logs/" or "~/Library/logs/" to get it to show up in the Console application. I'm wondering if it would be possible to add a new directory or log file to the "root" level directly under the "LOG FILES" section in the console. ...

How do I make the apple terminal window auto change colour scheme when I ssh to a specific server

When I ssh into a remote production server I would like the colour scheme of my terminal window to change to something brigh and scary, preferably red, to warn me that I am touching a live scary server. How can I make it automatically detect that I have ssh'ed somewhere, and if that somewhere is on a specific list, change the colour sc...

How can I make a program start up automatically in OSX?

I have a little program that I want to make open automatically when my mac is started up. Because this program accepts command line arguments, its not as simple as just going to System Prefs/Accounts/Login items and adding it there... From google, I read that I can create a .profile file in my user's home folder, and that will execute ...

What do you use to create flowcharts?

I'm curious what tools people have found useful for building flowcharts. Obviously MS Visio and OmniGraffle come to mind but they both feel so bloated and also tend to emphasize the document formatting/printing side and less on helping to organize the actual logic. Is there anything else out there that fellow developers would recommend? ...

How do we recruit great Mac developers?

My company wants to make some serious applications on the Mac, but we're having a hard time finding experienced mac developers. We're talking Objective-C Cocoa native stuff here. What's the best way to get them? Remote employees? From where? Contract workers or companies? Who? ...

iPhone to iPhone communication

I'm kind of curious how I should approach a problem with iPhones and communication between two phones. I have an idea for an application that needs to send data between two known phones. The problem is that the data could be very small or very large. I want to have intermediate storage on a server and a messaging layer, but I want there...

adding multiple views to view controller inside a tab controller

I have a tabview controller to which I added a UIViewController to each tab. I want to have multiple UIViews inside the UIViewController. So in the implementation of the UIViewController class I added [self.view addSubView:uiview1] and [self.view addSubView:uiview2]. The problem is that when I run the app, it crahes on load. However, i...

Xcode Preprocessor Macros

In Xcode, I can edit my preprocessor macros in the project settings. I want to create a macro that refers to an environment variable. Basically, I want to be able to refer to $SRC_ROOT in my code. What I currently have in my macros is: SRC_ROOT=${SRC_ROOT} but it isn't working. ...