mac

What location do OSX/Cocoa applications generally use to store data files?

Do they write/store them within the app bundle/package itself? Or some other canonical location? Or does there not seem to be any standard? ...

Objective C Path drawing to link buttons

Hi all, Does anyone have any idea on how to make a path drawing to "link" up two buttons like the iphone game Airline Conqueror? ...

Nokia E50 and mac internet sharing

Hi, I am using a nokia E50 and imac. my imac is connected to the internet. i want to share my internet connection to my E50 too via bluetooth. is there any way to do this. help needed.. is there any third party application which does the same? ie, which provide an option to share the internet of a desktop.! Thanks in advance. ...

MacOS : access SSH from UI

Greetings, Is there an easy way to access SSH server without installing a client. Like in linux (Gnome) I can type ssh://192.168.2.38 and access the resource. thanks ...

NSTextField value during edit is the field editors value. But I need the field's original value

When I send stringValue to a NSTextField when it's field editor is active, it returns the current value from the field editor. But I need the original value from the NSTextField before it started editing! How can I get it? (tried to get the stringValue from the NSTextFieldCell, but I get the field editors value too) Any suggestions how ...

How to get serial number from hard disks? "Mac"

Is there any easy way to get the serial number of all the hard disks in a Mac using any API's? Basically looking for a unique identifier for hard disk, with which I should make out that the Hard disk has been used(referred) by my application or not. Please let me know if there is any other solution. Note: I need this solution in 10.4 a...

Implementing a 30 day time trial

Question for indie Mac developers out there: How do I implement a 30-day time trial in a non-evil fashion? Putting a counter in the prefs is not an option, since wiping prefs once a month is not a problem for an average user. Putting the counter in a hidden file somewhere sounds a bit dodgy - as a user I hate when apps sprinkle my hard...

Blackberry Development on Mac OS X

Hi, I recently started creating applications for mobile devices and have successfully completed an application for the iPhone. I am now turning my attention to the Blackberry but haven't been able to find a convincing article or website that states that it can be done or a tutorial on how to do so. Can Blackberry apps be developed on Mac...

XCode debugger sucks; alternatives?

I've been programming on the Mac since I was a little kid using THINK C. I've never had to use a debugger as bad as the one that comes with XCode. It's unresponsive, and bogs down further and becomes unstable when watching more variables. When it crashes, I lose undo history for my sources because it's integrated with the editor. It do...

Platform independent way of setting a unhandled exception handler using Qt?

Mac OS X (Cocoa) NSSetUncaughtExceptionHandler Windows SetUnhandledExceptionFilter Is there a platform independent way to do this using Qt? ...

Actionscript development - OS x vs windows

I have a mac sitting right next to my PC for photoshop/illustrator/flash development. However, though I am fully capable with a mac, I find the text navigation shortcuts non-standard and cumbersome to say the least. Recently I've taken to editing my actionscript files on my PC via a network share and then merely compiling the flash compo...

Intercepting HTTP request on Mac OS X?

I need to intercept all HTTP requests on a Mac OS X client and record the request url in it. I know on Windows machine, I can implement a Winsock LSP and have it intercept all winsock calls. Is there a equivalent on Mac OS X? Thanks. If you don't have the direct answer, I'll appreciate if you can point me to where these Max system progr...

Why wait SIFS time before sending ACK?

Question about the MAC-protocol of 802.11 Wifi. We have learned that when a station has received the data it waits for SIFS time. Then it sends the packet. When searching online the reason that is always mentioned is to give ACK packets a higher priority. This is understandable since a station first has to wait DIFS time when it wants t...

How to get started building a Mac application.

I am a Python/web programmer. Now, I would like to transition to building applications for the Mac. Please tell me--what do I have to learn to get started? What books would you recommend? ...

Binary files and OS

Hello! I'm currently learning C++ and there are some (basic) things which I don't really know about and where I didn't find anything useful over different search engines. Well as all operating systems have different "binary formats" for their executeables (Windows/Linux/Mac) - what are the differences? I mean all of them are binary bu...

Mac/Windows MIDI application programming language

What is the best programming language for writing MIDI-interactive musical application that would be run on MAC and on Windows? ...

How to get variable value of applescript in cocoa ?

NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init] ; NSAppleEventDescriptor *eventDescriptor; NSAppleScript *script ; NSString* source ; NSDictionary* errorDic ; source=@"tell application \"iTunes\" \n" @"set tname to name of track 1 of playlist 1 \n" @"set tartist to artist of track 1 of playlist 1 \n" @"set talbum...

How to write OSX finder new functionality/view

Hi, I am new to Mac programming and I wan't to make a sort of plugin that change the standart view of files in Finder and add some custom buttons. Any idea how can I accomplish it or where to start? Thanks a lot, Adam ...

How to replace old ParamText/StandartAlert with newer CFString replacements?

ParamText() is an really old way of replacing parameters in a string that is based on Pascal strings. Also StandardAlert is not quite Unicode ready. The new message box (not so new) replacement is CFUserNotificationDisplayNotice but this one expects CFString and I found out that if I'm about to switch to using CFString I'm not able to u...

Chat Bubble Cocoa

I have been trying to create a chat bubble for about a month now... (you know, like the one in iChat or Tweetie). At some point I found a thread that said that I could use Twitterfon's source... which I did. But I get stuck for a few reasons. Which ones? Apple didn't seem to implement all the methods needed for calculating the rect's siz...