mac

IOBluetoothHostContoller in 10.5

The following code compiles fine when compiling as Mac OSX 10.6 as the active SDK (linked with the 10.5 frameworks, 10.5 set as the base SDK) IOBluetoothHostController *controller = [IOBluetoothHostController defaultController]; However, if I compile it with Mac OSX 10.5 as the active SDK, I get an error message saying that IOBluetoot...

Getting mount point when a USB device is inserted Mac OS X and linux

Hi All, I am trying to develop a program in Mac OS and Linux which lists the files and folders in USB drive. I need to get the some events when USB device is connected and removed. I know that in Mac OS X I can use IOKit. But I do n't know how to get the mount point where the device is mounted. Can I get it using IOkit? Is there any cro...

Compiled FreeImage from source. #include FreeImage.h not found.

I have compiled FreeImage 3.10.0 from source at /lib/FreeImage on Mac OS X 10.6. I can see that after compilation these files were copied: /usr/local/lib/libfreeimage-3.10.0.dylib /usr/local/lib/libfreeimage.a /usr/local/include/FreeImage.h CMake cannot find FreeImage, but I cannot even do #include <FreeImage.h> // not found I am...

books on development of mac os applications.

I want to develop applications on mac os x. please suggest me the good book for it. And good book on Cocoa also. If possible please send me the links of free ebooks on these. ...

difference between carbon and cocoa ?

What is the difference between carbon and cocoa ? For what type of applications we should use carbon and for what type of applications we should use cocoa ? Which is the best of both for developing applications in Mac OS ? ...

What's the best why to do a local high scores board in my app?

Hello, I'm trying to make a local high scores board for my app, but with no success till now. I searched anywhere for a local high score board code but didn't found any. What is the best why to write such a thing? If you can please post example code. Thanks. ...

Cannot find User Interface Code Sample from a 2009 Mac WWDC session

Hi, The Session 426 "state of the art cocoa - user interface design" (MAC session) is really helpful. The title of the code sample used during the session is "Exposure". I cannot find it in the Mac Dev Center. Can you say me if the example is available on ADC website? Thanks. ...

Viewing Flash Applications on a Mac: stage.stageWidth/stage.stageHeight Return 0 in Firefox/IE

I am using SWFOBJECT to embed my flash content. I have been worried about stage.stageWidth and stage.stageHeight returning 0 in Firefox/Internet Explorer; this problem is referred to in question #21 on the SWFOBJECT FAQ (http://code.google.com/p/swfobject/wiki/faq). I have been told that this problem is particularly prevelant on Mac...

Locking Your Own NSPreferencePane?

Is it possible to implement a locking effect in a NSPreferencePane that we create? Similar to the lock found in other system preferences panes (such as Energy Saver, etc) I know that I could create a keychain item and then just have the enabled boolean of the controls bound to something that depends on the user authenticating successful...

Mac OSX cannot connect to Ubuntu samba

For about 3 years my mac could connect to my Ubuntu samba, and randomly it stopped working. I get an error code -36 error and it tells me that it can't connect to it. Weirdly enough, thinking I could just wipe my key chain and re-enter the user/pass (which didn't work), smbclient through the command line connects just fine. I am complete...

Ruby interpreter won't run on my Mac

I can't get the Ruby interpreter to run on either of my Macs (one MacBook and one MacBook Pro, both running Snow Leopard). When I run it, by typing ruby in Terminal, nothing happens. It just sits there. I can kill it by pressing Ctrl+C, but that's it. I know the Ruby process is running, since I can see it in Activity Monitor, and running...

bindkey with zsh on Mac

Hi, I've been trying to bind keys in zzh on a Mac but am having some trouble. I know I should be Googling this but couldn't find what I need... I've been trying to bind ctrl-backspace to be an equivalent of ctrl-w, ie delete one word. But I can't find the key code for it. Nothing shows up when I do it with 'read'. I can't find a chart ...

USB on Mac (how to use digital to analog converter on mac with cocoa)

Hi I have to play an audio file on digital to analog converter (Silverstone digital to analog converter Model number DB01S) on Mac ox x 10.6 with cocoa. I used USBSimpleExample from apple but i am always getting this error "dealWithInterface: unable to open interface. ret = e00002c5" Any help would be appreciated! Thanks ...

What's an easy way to have terminal use a different color based on ssh host name?

Using putty in windows, you can save sessions that connect to a certain host and use a certain text color...this was super useful for me since I work with a bunch of remote hosts and I'm wondering if there is (there must be) a way to get Terminal (in Snow Leopard) to emulate this behavior. I'm wondering how I would 1. Save a connection...

How to force a page refresh while pressing the back button in MAC safari

I have two aspx pages(A,B) created using ASP.NET MVC . In the file A i have a few check boxes and textboxes. When i move to page B and try to navigate to page A by pressing the browser back button(in MAC Safari), the page is not getting refreshed . The page retains its old values (for checkboxes and textboxes). When i had the break po...

Problems installing MySQL-python-1.2.3c1 on Mac Snow Leopard

Hi All I am having a problem installing the Python MySQL connector (MySQL-python-1.2.3c1) on my Mac OSX Snow Leopard. System State I have manually compiled an installed: mysql-5.1.41 This seems to work fine, as I can create and query a database from the commandline. I have compiled: MySQL-python-1.2.3c1 I first set the following in ...

Mac Resource editor in Snow Leopard?

I have some OLD programs that I'm mantaining. They still use resource files with resource forks, and all that hideousness. My co-worker uses a 10.3 box that can still run mac classic programs and RezEdit. I used to use ReSorcerer, but it doesn't seem to work very will in 10.6. Does anyone have any recommendations for programs to us...

How do I get my cocoa emacs on Mac OS X to load my .emacs visual customizations for new windows (any document opened after the first)?

So I just downloaded emacs 23.1 for my new snow leopard macbook pro from http://emacsformacosx.com/ and it works like a charm, except... I have visual customizations in my .emacs, a few lines are extracted here: (set-background-color "black") (set-cursor-color "green") (set-default-font "--Lucida Console-normal-r-normal-normal-1...

SVN+SSH, not having to do ssh-add every time? (Mac OS)

I know the answer is out there, but I'm pretty Unix-dumb and probably wouldn't recognize the solution if it hit me in the face. I'm on a Mac, connecting to a SVN server via SSH tunneling. I have to ssh-add privateKey.txt every time I want to connect to the SVN server (Both Cornerstone and Xcode are connecting to SVN). Is there a way...

-bash: ./configure: No such file or directory - MySQL install on Mac OS X 10.6

I'm trying to install MySQL on Mac OS X 10.6. After I download MySQL and untar with tar xzvf mysql-5.1.37.tar.gz I then try and run this configure line: ./configure --prefix=/usr/local/mysql --with-extra-charsets=complex --enable-thread-safe-client --enable-local-infile --enable-shared --with-plugins=innobase I get the error -ba...