osx

Cocoa: Sliding a HUD window from a dock icon

I want to accomplish a specific animated start-up behaviour for a utility application window. When the application starts I want the application window (a HUD window) to slide out from the dock, comparable to the way a drawer slides out of a window. I would appreciate any hints on how to accomplish this, if it is at all possible. ...

Navigation application in mac

hi, i am new to mac development, i have to create an application which will have multiple views/windows like in installation wizard( where few option are selected one after other etc). Can any one provide me a link for any such tutorial or where can i refer them. sample app will be very much appreciated. ...

How to get the total amount of shared video memory of a graphic card on Mac OSX?

Using e.g. the command line tool and creating a NSDictionary from the output of: system_profiler -xml SPDisplaysDataType it is possible to get to know the amount of video memory. The key spdisplays_vram contains e.g. the string "512 MB". However, on a graphic card with shared video memory only the identifier spdisplays_integrated_vram ...

Cocoa - prevent window from getting overlapped

I'm writing an app that should remain visible on the desktop at all times. As such, I have to prevent other apps' windows moving on top of my app's window. The Dock.app from Mac OS X partially does this: if you resize windows, they won't resize into the Dock.app's screen space, and if you hit the windows' '+' button, the window will not...

Why is 0x1F segment special in OSX?

Some of the Mach-O executables have an LC_UNIXTHREAD command with the following initial register values: cmd LC_UNIXTHREAD cmdsize 80 flavor i386_THREAD_STATE count i386_THREAD_STATE_COUNT eax 0x00000000 ebx 0x00000000 ecx 0x00000000 edx 0x00000000 edi 0x00000000 esi 0x00000000 ebp 0x00000000 esp 0x0...

How to log STDOUT of a background process w/o buffering on Mac?

I am running a background process on Mac and have a problem with log update. If I run someprog > mylog & then mylog is updated not immediately, but with some intervals - I guess it's due to buffering. Same thing with at now. If I kill the program before output is written to mylog, then I loose the data. There was no such problem with ...

Xcode leaks tool not showing object for a single massive leak made by realloc I'm guessing.

Hello. I have some code which has a memory leak. It's in development still so this is expected to happen but I can't find where the memory leak occurs. I try using the leaks tool and it shows an allocation like this (The 1.17MB steadily increases through the program): Category: Malloc 1.17MB Live/Overall Bytes: 1.17MB Obviously for on...

Creating a library (.a) in Mac OS X and Xcode

I'm in the process of porting some code from Linux to Mac OS X. The code is a static library that you add to your code. Basically after you compile the code you get a MyLib.a that can be linked to whatever project you want. I'm managing the "project" via a Makefile. Is there a way to have a project on Xcode that ultimately produces the ...

py-appscript & events

Is it possible to subscribe to events using py-appscript ? Example: I'd like to get a callback when a user changes a rating on iTunes. ...

Good resources to learn MacRuby

I do not know Ruby and I am interested to learn MacRuby. What would you recommend as your best resource (books, blogs, sites) to learn MacRuby? Found:http://www.macruby.org/ ...

OSX Leopard keyboard input API other than cocoa

Hi, I am currently trying to get simple keyboard input on OSX, right now I am doing it through the Leopard HID Manager object and that generally works, but since that is pretty low level I am wondering if there is an API available that has some extra functionality build it like key repetition or Unicode support (since when I catch the e...

QuickLook base panel

In a quicklook preview panel, there is a line along the bottom that normally displays a 'Full Screen' button enabling full screen. If you open a file with a JPEG or other iPhoto supported image, there is also an 'Add to iPhoto' button here. Looking through the apple docs I see no reference to how to add things to this panel, so I am gue...

Install hpricot on Mac OS X with rvm and brew

Having problems installing hpricot on Mac OS X. I suspect it might be an issue between rvm and brew? rvm 1.0.5 brew 0.7 Thoughts? Suggestions? Thanks! $ gem install hpricot Building native extensions. This could take a while... ERROR: Error installing hpricot: ERROR: Failed to build gem native extension. /Users/dhaskin/.rvm/...

Playing a stream of video data using QTKit on Mac OS X

I've been playing with QTKit for a couple of days and I'm successfully able to record video data to a file from the camera using a QTCaptureSession and QTCaptureDeviceInput etc. However what I want to do is send the data to another location, either over the network or to a different object within the same app (it doesn't matter) and the...

Running applications against a different SDK in OS X?

Summary I want to run my cross-compiled application against the 10.5 libraries. Is there an environmental variable that allows this to work? Longer version I cross-compiled my OS X C++ application for a 10.5 target, on a 10.6 host. It compiles fine. The compiled application is linked against libraries like /usr/lib/libstdc++.6.dylib. ...

Is there an objective-c git library that would support push/pull against a remote repository?

Is there an objective-c git library that would support pushing to/pulling from a remote repository? I'm familiar with objective-git, but if I'm reading it correctly, it is for interaction with a local repository. Ideally, the library would work on iOS and Mac OS X, and would be permissible for inclusion in app store apps. ...

Java app loads JNI differently when started via Ant

I'm using RXTX in my Java application which includes a JNI library. I placed the .jni file in /Libray/Java/Extensions. When I start my application manually via the usual java -jar /path/to/app.jar everything works fine. However when I try to start it via Netbeans or Ant it fails with [java] java.lang.UnsatisfiedLinkError: /Library/Jav...

Why do I get "EXE_BAD_ACCESS" ?

I have following code, which executes on button press. At first it works as expected but second time onwards application hangs and I get EXE_BAD_ACCESS signal. - (IBAction) comicDetailsPressed:(id)sender { static IssueProperties *props = nil; if (props == nil) { props = [ComicDataParser parseComicForUrl:@"http:/...

NSNotification to detect other program's crashes

I was planning on writing a small daemon that detected whether another app crashed, thinking all the while that the system would send an NSWorkspaceDidTerminateApplicationNotification, but this is not the case. Assuming that I do not want to create a launchd process to simply re-launch the crashed application, can I detect the crash an...

Java Media Framework: how do I install JMF for mac?

On the sun Website, there have download options for windows, solaris, and linux. http://www.oracle.com/technetwork/java/javase/download-142937.html ...