mac

sudo port install arm-elf-gcc3 fails with "No defined site for tag: gcc…"

Am trying to get the ARM plugin for Eclipse (http://sourceforge.net/projects/gnuarmeclipse/) going on iMac i7, OS 10.6.3, Xcode 3.2.2 (don't want to upgrade during my project). The plugin needs (IIRC) arm-elf-gcc3, which needs darwinports for "easy" install. Of course, probably due to leftovers when I moved from old MacBook to iMac, Darw...

Is there a way to set "Keep in Dock" setting while installing AIR app in Mac?

Hi, I am mainly a windows programmer and need to ask this to Mac experts. Is there a way to set "Keep in Dock" setting while installing AIR app in Mac? So that when user does a quit from the dock menu the app remains there, unless user does a "Remove from dock" manually, instead of the default where user has to do a "Keep in Dock" m...

Writing a DLNA server (DMS) in Cocoa/Objective-C/C

I'd like to write a DLNA server in Cocoa for the Mac. Are there any libraries for speaking UPnP/DLNA in Objective-C or C? Failing that, where is the spec for DLNA so I can write my own? ...

Developing for Mac, without a Mac.

Hello I am a "lone wolf" C++ game developer, and games sell more on Mac (because noone make Mac games... bizarre), so I need to make Mac games. My problem is: I don't own a Mac, and I have no way to get one (unless someone donate one to me...), I don't have money even to upgrade my crappy 3 year old PC, or buy a netbook... So, how I d...

How can I animate a content switch in an NSImageView?

I want to switch the image shown in an NSImageView, but I want to animate that change. I've tried various methods to do this. Hopefully one of you could suggest one that might actually work. I'm working with Cocoa for Mac. ...

How to merge two branches with the Mac OS X git client Gity

I'm having trouble merging two branches with Gity. When I do a checkout on my alternative branch and click: "Merge into master" nothing seems to happen... Any thoughts? ...

Performing a task immediately when an app starts

I know there is an NSSomething() that is called automatically if it exists when the app starts and can be used to set for example the text of a label. I just can remember the name of that function. help? Thanks! ...

simple CATextLayer scaling problem

I'm having a simple scaling problem with CATextLayer, but i just couldn't figure it out: I want the CATextLayer to proportionally grow in size with it's superlayer: if the superlayer's width is 300 the text size of CATextLayer should be 12 and if the supeview's width is 600 the text size should be 24. I couldn't find a working solution! ...

Mac laptop usage and development discussion?

I bought a new Mac book (MacBook Pro), and I am previously using Windows. I use this MacBook for personal (e.g. instant messaging, document, browsing the web) and development (writing C++ and Java code) purpose. Any recommended discussion group or forums (or I can directly ask here in StackOverflow)? I am a newbie. ...

How to make Shell to allways be on top at runtime in SWT?

I'd like to implement "Always on top" configuration option in my application that takes effect immediately. I know that I can call Shell constructor with ON_TOP style. Is there a way to do that at runtime, that is after Shell instance has already been created? ...

PNG's In Mac on Java cause massive CPU usage

Hey, I've been having this problem for a while now and I was hoping someone could help. I make small games using Java on Mac OSX 1.6.3 and if I use PNG's as the image format my CPU usage by Java skyrockets to say 50% (on a very small 2D game). However if I use GIF as the format my CPU usage by Java stays constant at 10% which is reasona...

Is Ubuntu a stable development environment, or does it lack support compared to a Mac?

Is Ubuntu a stable development environment, or does it lack support compared to a Mac? ...

How do I create a C++ console/terminal project in XCode?

I am using MacBook Pro Mac OS 10.5 with related version of XCode. I am new to this development environment. I want to develop C++ code for a console/terminal-based application using XCode on Mac OS 10.5, but I did not figure out how to create such type of project using XCode. Could anyone briefly describe the steps or refer me to some re...

Send AppleScript to remote computer in Objective-C

How do you use Objective-C (iPhone) to send an AppleScript to a remote computer (on same network) to be executed? I think something like NSNetService would be of use here, but I don't know. EDIT: Ok, to clarify, all I want to do is send a command ID or something and then the Computer associate that with the corresponding AppleScript co...

where is std::cout windows in MacBook Pro?

Hello everyone, I am using MacBook Pro Mac OS 10.5 with related version of XCode. I am new to this development environment. I am developing C++ console/terminal applications (File->New project, then from the list on the left "Command line utility", and on the right "C++ tool".). When statement like std::cout executes, I think the outpu...

Creating a Mac OS application that interacts with all text fields

What would be the first step to creating an application for Mac OS X that would take user interaction from any text field in the system? A couple examples of apps that do this are TextExpander and Typinator. What I want to do would be using similar functions to access Text fields throughout the computer during user input to give other a...

How can I display a hidden view in Interface Builder which is on a unattached monitor?

I am using Interface Builder to work on NIBs and one of the NIBs must have a view on my external monitor which is not attached because I cannot see it on my MacBook. I have had this problem with editing iPad NIBs which I work on with my larger external monitor. For some reason Interface Builder is not detecting that there is now just on...

WebKit gets blank when clicking on the menu toolbar

Hi y'all. I've embebed a WebKit view into a modal dialog using Carbon and appereantly everything works fine. However there's a little problem. When I click on the menu toolbar the view gets completely blank getting visible only when I interact with it. Seems like the control stops reciving the 'paint window' event when I call MenuSelect...

How can I expose an Objective-C function to JavaScript using WebKit on Mac OS X?

I understand to do this on the iPhone you need to trap link requests (as per my other iPhone question UIWebView Expose JavaScript) and you can easily do the reverse and access JavaScript from Obj-C code. However, I would like to have JavaScript be able to call some Objective-C functions that would somehow be registered with WebKit. I a...

XCode C++ source code print issue on Mac

Hello everyone, I am using MacBook Pro Mac OS 10.5 with related version of XCode. I am new to this development environment. I am developing C++ console/terminal applications (File->New project, then from the list on the left "Command line utility", and on the right "C++ tool".). For C++ source code file, I want to print source file con...