osx

how do i to make a window(osx) always hover on top of screen

hi, i trying to make a osx application that just have one window and it will always on the top of screen. anyone knows how to achieve it? thanks. ...

CALayer, anchorPoint and layer hierarchy

Hi, I try to use the anchorPoint in a layer hierarchy to move a layer with its sublayers. Unfortunately the sublayer did not move together with the root layer. In a custom NSView is set up my layer hierarchy like in the following snippet. CALayer * rootLayer; rootLayer = [[CALayer layer] retain]; rootLayer.position = CGPointMake(...); ...

How to run UNLV tests on Tesseract using mac osx

TestingTesseract How to run UNLV tests on Tesseract using mac osx? I am wondering if there are methods to build OCR Frontiers Toolkit on mac os? ...

How to gradually retrieve data from NSTask?

I am working on a GUI (Cocoa) for a command-line tool to make it more accessible to people. Despite it being a GUI, I would like to display the output to an NSTextView. The problem is that the output is large and the analysis the tool carries out can take hours/days. Normally, when working with NSTask and NSPipe, the output is displayed...

TDD for an OSX app

Are there any good solutions out there for TDD of a MacOSX Objective-c app? EDIT: more info I would really like something similar to rSpec from the Ruby world. Is the XCode built in stuff sufficient? I have heard that it is not. I would like something that supports Mocks, Stubs, and most/all of the test conditions supplied by rSpec (or...

Which version of OS X should my program target?

Hi, We're building an application for OS X, and we can't rely on our users all having upgraded to Snow Leopard, or whatever the latest version is. We want to make sure that as many people as possible can use our app, but we also don't want to throw away some improvements that were made in OS X version if only 1% of users are stuck usin...

Store Admin Password in OSX Keychain For Automating Certain Processes?

I have a whole series of commands that I need to run on login, many of which require root privileges. So, to save a few steps I put them all into one apple script so I wouldn't have to open the terminal. But still, I'd like to be able to do this without entering my password at all (I like to boot my machine early AM while I'm still sle...

readelf-like tool for Mac OS X?

Is there a tool for reading Mac OS X binaries that would print information about relocation tables and symbol offsets similar to this readelf output? readelf -r app Relocation section '.rel.dyn' at offset 0x5ec contains 2 entries: Offset Info Type Sym.Value Sym. Name 08049d58 00001706 R_386_GLOB_DAT 00000000 _...

How to get average memory and CPU per process on Mac OS X

Is there a tool which can help me getting average CPU and memory taken by a process by running over certain period of time? I used Activity Monitor, but this does not give average of these values. Idea / suggestions? ...

How to create an .app file in mac os x from binaries?

Hi, I have a project in the form of binaries which can be distributed to other mac pcs. How to create an .app file for that project? Thanks in advance ...

Return code from Mac app

I'm trying to create a Mac app, which should return an error code in some cases. This is an Intel bundle. (It's a Carbon C++ project, but this is probably irrelevant.) The standard way to do it in C++ would be to have the main function return the value, and that's what I do, so I think that part is correct. (I also tried explicitly calli...

Building ALPY on OS X, cannot find python library path

I've been trying to build ALPY (http://www.stolk.org/alpy/) on Mac OS X, but I can't get past ./configure. I have python 2.5 installed, and most of the folders it uses are named python2.5, so I've symlinked them with a python folder in the same directory, but this had no effect. There was previously an error that required the symlinkin...

popup menu calling for update of all menus on each keypress

I'm creating a pop up menu programmatically and updating it with the delegate method menuNeedsUpdate:(NSMenu *) menu and then displaying it using the popUpMenuPositioningItem:nil atLocation:mouseLoc inView:nil method. It works fine as far as mouse control is concerned. However, when using the keyboard (letters or arrow keys), I've notic...

Is there a counterpart of Mac OS-X filesystem bundles on Windows?

What I need is a directory which the user can handle as a single file in the Windows explorer. Does something like this exist? If not, what comes closest? ...

OpenGL texturing problem

Hi, I've been working on cross-platform 3D engine but atm I have version running natively on OSX and iPhone/iPad ( which in Simulator uses system GL library ). The problem I'm experiencing is that each texture is slightly shifted in both directions ( looks like just about one texel shift ) and I would look more in my code if I didn't se...

Apply a CIFilter background filter when host window is transparent

I want to replicate the background of dock Stacks in grid and list mode. The background is translucent black with a blur effect: The problem is that [CALayer backgroundFilters] only applies to content in the window, the filters are not applied to content in other windows. Here's my code: - (void)applicationDidFinishLaunching:(NSNotif...

architecture of loaded framework

My application is linked with one system framework. The framework architecture is 32/64 bit standard Universal. The architecture of my application is also the same. 1.First I run My application in 64 bit architecture so it will load the framework with 64 bit architecture. 2.Next I run the My application in 32 bit architecture . Que...

errors compiling pygsl on mac os x

I am having trouble compiling Pygsl on Mac OS X, using GCC 4.2. I ran the following: sudo python setup.py install And got this error: In file included from testing/src/sf/sfmodule_testing.c:49: testing/src/sf/sf__data.c:779: error: ‘gsl_sf_exprel_n_CF_e’ undeclared here (not in a function) testing/src/sf/sf__data.c:806: error: ‘gsl_...

Cocoa Application Bootstrap Questions

I am an experienced developer, new to Mac development, so I Read a nice objective C guide Read the Apple memory management guide Went through the Apple intro to Cocoa Checked out the NSApplication and NSApplicationDelegate Refs Messed around a bit There are still lots of gaps, and I'm having a hard time finding good readables. Some ...

Program overflows call stack by sheer force of will

Here's the call stack from a user's crash report: Thread 0 Crashed: Dispatch queue: com.apple.main-thread 0 com.growl.GrowlSafari 0x179d383c writeWithFormat + 25 1 com.growl.GrowlSafari 0x179d388e writeWithFormat + 107 2 com.growl.GrowlSafari 0x179d388e writeWithFormat + 107 3 com.growl.GrowlSafari...