mac

MY XCode datatips are not showing up

I've got a little problem and I'm hoping someone here can help me out. I've used XCode pretty regularly for a while now and have made plenty of use of the Debugger datatips. All of the sudden today on a new project that I am working on, they are not there. The setting is toggled on under the Run->Debugger Display->Datatips menu, but they...

iPhone development

I have an iPod touch. I have a Mac. I want to put an iPod touch app I write with my Mac on my iPod touch. I don't plan to sell it on the Apple store. I don't plan to distribute it to other people. Is there anyway to do this without paying apple $99? Thanks! ...

IKImageView and scroll bars

I have an NSScrollView with an IKImageView inside to display images. This seems to work. However, if I make the window smaller than the image, the scrollbars appear as they should, but the BOTTOM of the image is locked to the bottom of the window, instead of the top of the image being locked to the top of the window. In other words, I w...

Problem building Ruby on Mac OSX Snow Leopard

I'm having an issue compiling (make) ruby on Mac Osx . I get the following error: compiling racc/cparse mkdir -p ../../../.ext/i686-darwin10.2.0/racc gcc -I. -I../../.. -I../../../. -I../../.././ext/racc/cparse -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -D_XOPEN_SOURCE=1 -fno-common -pipe -fno-common -c cparse.c cc -dy...

Old Mac extended attributes in Snow Leopard

Last year I had to convert and old Mac font from around OS 9 for someone to use on a PC. I discovered that back then the font data was stored in the extended attribute com.apple.ResourceFork. The actual file size will show up as 0 in terminal. I was able to get around this by simply printing out the value of that extended attribute using...

How to use Process.Start() or equivalent with Mono on a Mac and pass in arguments

I am trying to write some c# code to start a browser using Process.Start(app,args); where apps is the path to the browser e.g. /Applications/Google Chrome.app/Contents/MacOS/Google Chrome and the args are --no-default-browser-check If i do, which works on Windows and on Linux Process.Start("/Applications/Google Chrome.app/Contents/MacO...

iPhone Or Mac Header File?

Hello all, Just a small question... How is it that you tell the difference between an iPhone header file which you can use in conjunction with iPhone development, or a mac specific header file. Many thanks, Stu ...

Safari and downloading file issue

I have a website where I let users download mp3 files. The code snippet (partial) is as follows: Response.Clear(); Response.AppendHeader("Content-Disposition:", "attachment; filename=mike.mp3"); Response.AppendHeader("Content-Length", "1000"); Response.ContentType = "audio/mpeg3"; A customer complained that he is unable to download th...

Window docking advice for Mac

Hi, I'm from a Windows programming background when writing tools, but have been programming using Carbon and Cocoa for the past year. I have introduced myself to Mac by, I admit it, hiding from UI programming. I've been basically wapping my OpenGL code in a view, then staying in my comfort zone using my platform agnostic OpenGL C++ co...

Powerful search-replace GUI app for Mac?

What's the best dedicated search-and-replace GUI tool on a Mac? "Find & Replace It!" seems decent, but they've ridiculously disabled the replace function in the demo, so I can't give it a real test before paying. Is there anything else comparable or better? ...

installing pygobject on mac for Python 2.6

hi, Does anyone know how to install PyGObject on Mac OSX for Python 2.6. The current distribution available on darwinports is using Python2.4. I want a package using Python2.6 Alternatively, has anyone tried installing it from sources on a Mac? ...

PyQt MenuBar Mac 0SX Snow Leopard

I am attempting to add an item to the application menu-bar of a simple PyQt example. However, the following code does not seem to alter the menu-bar at all. The only item in the menu is "Python". Below is the bulk of the code, minus imports and instantiation. class MainWindow(QtGui.QMainWindow): def __init__(self): QtGui.QM...

'Assembly Language Step-by-Step' on Mac OS X?

Hi, I am following through the book Assembly Language Step by Step and it says the book is for computers running Linux. What are the necessary tools to use the book with Snow Leopard? Thanks. EDIT: The book uses the Kate editor. So, preferable something that does the same thing as Kate. ...

How can an iPhone communicate with a computer?

How do apps like Apple's "Remote" app control mac applications and send data? is this via php with exec() commands or some other method? and how would I do it in c? Also, how fast is this rate of transfer (can I use it to send real-time data like streaming video or audio?) thanks to anyone who cares to enlighten me on this issue :-) ...

Getting "global" mouse position in Mac OS X

How can I get in Mac OS X "global" mouse position - I mean how can I in cocoa/cf/whatever find out cursor position even if it's outside the window, and even if my window is inactive? I know it's somehow possible (even without admin permissions), because I've seen something like that in Java - but I want to write it in ObjC Sorry for my...

How to use Automator to bring window to front?

I'm using a Mac, OSX 10.6 and I have a function in a desktop application that I want to automate. Manually I press Command+R wait for the application to read some data form a physical device for 1 minute, then press command+R again to take another reading (at this point it asks me if I want to save the data, so I press tab, tab and th...

Does PBKeyBinding.dict still work for setting Xcode key bindings.

New to the Mac (OS X 10.6.2), and Xcode (3.2.1), (and new here!), I've been tinkering with the shortcuts, using the procedures described here. I made the folders mentioned, and the file PBKeyBindings.dict: /* ~/Library/KeyBindings/PBKeyBinding.dict */ { "^f" = "moveWordForward:"; /* Ctrl-f = next word */ "^j" ...

what languages are supported in realbasic?

a friend told me that i possibly can create mac applications via the php plugin in realbasic. is this true? ive searched the net like crazy and the syntax doesnt look anything close to php using the plugin that is. all u do is write function calls and write your php in it. but that is kind of dumb. what i wanna know is what languages are...

Applications created with real basic (real studio) for mac or windows

i have search high and low on the internet and it does not exist. i cant find a single website that shows a few applications created with realbasic. i saw a video that shows the user going to realbasic.com/community/ and it shows a load of applications created using realbasic. would anyone know where i can find this information. that lin...

emacs is ignoring my path when it runs a compile command

I'm trying to get a compile command (rake cucumber) to run with a specific ruby version on my Mac OS X system, I use rvm to do this currently in the terminal. My ~/.MacOSX/environment.plist has the correct path in it, but emacs insists on prepending to this path and therefore making it useless. I've also tried: (when (equal system-type...