osx

Can Shoes.rb Create Self-Contained Applications?

It's encouraging that Shoes (the Ruby GUI framework) has excellent packaging functionality, but I'm concerned that it doesn't actually 'wrap' itself around created applications. Packaging for OSX outputs a shoes installer and a shoes file in a .app system. Is there any way that shoes could create a .app that contains shoes - that doesn't...

Make alt key work when using NX client on OSX to Ubuntu 10.04 host?

I am using NX Client on Mac OS X 10.6 to access my Ubuntu 10.04 machine. I would like to use the Option/Alt key to Alt-Tab in the window manager and as the Meta key in Emacs. Some searching on the internet suggests that I set my OSX ~/.Xmodmap file to: keycode 66 = Alt_L clear Mod1 add Mod1 = Alt_L Alt_R Or: clear Mod1 clear Mod2 k...

Ant <input/> no longer working in Eclipse Helios (3.6)

I have a build file in my Eclipse projects. One of the things this file does is ask a question via a prompt, using the <input/> tag. Since upgrading to Eclipse Helios, this no longer works, as I'm getting the following error: [input] ***WARNING: Display must be created on main thread due to Cocoa restrictions. Invalid thread access Ho...

Tracing/finding function calls and arguments made by an AppKit class method

Suppose I'm calling class method + (NSStatusBar *)systemStatusBar: NSStatusBar *sB; sB=[NSStatusBar systemStatusBar]; My question is what's the best way to trace that class method call and find out what it is calling in terms of other methods and arguments? Does this entail advanced disassembly beyond what XCode provides? Thanks ...

How can I add header files to gcc in mac os x 10.6

Hello, I want to build a static library that requires openssl for iPhone. It can't find include files from openssl. How should I tell the compiler where to look for those header files? Thanks. EDIT: I'm trying to build librtmp for iPhone, for arm not for simulator. Just to test something. Im not building it from xcode. I think i have fo...

Xcode: 3.0-style message bubbles in 3.2

Is there a way to get back the old-school, "ugly" message bubbles that insert themselves in the middle of the code, as opposed to the new message bubbles that are hidden beside an icon on the left side until you click on them, when they appear on the right side? Despite the reflowing of code they did, this is primarily why I actually pr...

GCD and RunLoops

Hi everyone. In my app I add an CFMachPortRef (via CFMachPortCreateRunLoopSource) to a threads CFRunLoop Now i was asking myself, can this be done using GCD? Let's say instead of spawning my own NSThread and add the created CFRunLoopSourceRef to its run loop via CFRunLoopAddSource, add the event port to a dispatch's runloop? I think t...

Custom NSScroller issues

I'm trying to subclass NSScroller in order to draw my own scroller knob. To do this, I've subclassex NSScrollView and usex the following code to instantiate my custom NSScrollers: - (void)awakeFromNib; { NSRect horizontalScrollerFrame = [[self horizontalScroller] frame]; NSRect verticalScrollerFrame = [[self verticalScroller] fr...

Cocoa Application Template - MainMenu.xib - Main Window

Hey there, When you create a new application in Xcode, it automatically creates a AppDelegate and a MainMenu.xib. The latter also contains the application main window, which is linked to the AppDelegate as an IBOutlet. What I tried to do is, use a MainWindow from a different xib-file. However, there's absolutely nothing I can do to pre...

Certification for Objective C

Hi. Is there a globally recognized developer certification for Objective C? any tips on what would make me marketable in objective C/ Mac OS X/ iPhone development? ...

error dialog non selectable if thrown when focus is directed elsewhere, osx

I have a finalcut plugin, I can get it to throw an error dialog that normally is closable if I do not bring the focus away from the plugin. If I for example, start the process, switch to Chrome, I see the error get thrown in the background and then click the error's frame,NOT the OK button on the error, the dialog will get stuck behind ...

SetWindowsHookEx for Mac OS X?

Windows hooks allows you to poke inside other processes and sometimes alter their behaviors. Is there such thing for Mac OS X? Thanks! ...

How can I make OS X recognize drive letters?

I know. Heresy. But I'm in a bind. I have a lot of config files that use absolute path names, which creates an incompatibility between OS X and Windows. If I can get OS X (which I'm betting is the more flexible of the two) to recognize "Q:/foo/bar/bim.properties" as a valid absolute file name, it'll save me days of work spelunking th...

Cocoa: while(index >= 0) continuing, even though index == -1...

Once again :) I've got the following code: -(void)removeFilesWithPathIndices:(NSIndexSet*)indexSet { NSInteger index = [indexSet firstIndex]; while(index >= 0) { [self removeFileWithPathIndex:index]; index = [indexSet indexGreaterThanIndex:index]; } } Which should iterate through an NSIndexSet. However, th...

How can I make OS X recognize drive letters?

Possible Duplicate: How can I make OS X recognize drive letters? I know. Heresy. But I'm in a bind. I have a lot of config files that use absolute path names, which creates an incompatibility between OS X and Windows. If I can get OS X (which I'm betting is the more flexible of the two) to recognize "Q:/foo/bar/bim.propert...

How to programatically create a VPN connection on Mac OS X?

I have a config file that completely describes how to connect to a VPN. I'd like to write a tool (C or Objective-C) to read in the file and then create a new VPN interface on the system. I'm guessing the answer will have something to do with SCNetworkServiceCreate and/or SCNetworkInterfaceCreateWithInterface. Both of these want to bind ...

DB to run on OS X server that will sync nicely with Core Data on iOS?

I am trying to plan out a few iOS/server apps for internal use. On the iOS side I'll use Core Data, but I'm not so sure what many people do on the server side. I will be running a Mac Mini with OS X Server 10.6.X. This app will need to sync when the iOS device is on the internal WiFi as well as over 3G. Some of this data will need to be ...

Is it possible to inhibit the “Application quit unexpectedly dialog” on Mac OS X?

I have a testing setup which runs an Application on OS X with a varying set of parameters, if/when the program crashes it's relaunched and continues from where it left off. However when the Application crashes OS X raises the “Application quit unexpectedly” dialog, I'd rather avoid this as it clutters the machine. Is there a way to inhib...

Why aren't the Python 2.7 command-line tools located in `/usr/local/bin` on Mac OS X?

The Python 2.7 installer disk image for Mac OS X (python-2.7-macosx10.5.dmg) states: The installer puts the applications in "Python 2.7" in your Applications folder, command-line tools in /usr/local/bin and the underlying machinery in /Library/Frameworks/Python.framework. However, after installation there are no Python 2.7 files in...

What can cause a subset of NSResponder action messages to be ignored?

I have created a tiny project that consists of an NSWindowController subclass which opens its window during the app delegate's applicationDidFinishLaunching: method. There are no custom NSWindow or NSView subclasses. I'm trying to override various NSResponder action messages. Some work, some don't. My window controller has the methods ...