osx

Property declaration for to-many relationships in Core Data

I have an application written using Core Data. I have 2 entities with a one-to-many relationship. I have subclassed NSManagedObject for both of them. The entity on the one-side is called Playlist and the other is called Song. The interface for Playlist: @interface VBPlaylist : NSManagedObject { } @property (readwrite, copy) NSStrin...

Populate an NSTokenField with tokens from a container of objects

I have an NSTableView and an NSTokenField in a window. I have implemented the following delegate methods: tokenField:completionsForSubstring:indexOfToken:indexOfSelectedItem: tokenField:representedObjectForEditingString: tokenField:displayStringForRepresentedObject: I want to make it so that when a row is selected in it, the NSTokenF...

Silverlight on OSX, does it mean Microsoft ported a large amount of .NET Framework to OSX?

Silverlight works on OSX and Silverlight uses .NET Framework (at least a large portion of it). Does it mean Microsoft actually ported .NET Framework to OSX but doesn't tell us? Or do you think we can accept an official .NET Framework for OSX any time soon? ...

Delegate methods of NSTextField using NSNotification

I have an NSTokenField in a window. I am using it to store tags related to a Core Data object. Right now I have it set up such that I can add tags to the objects, but I cannot delete them. I need a delegate method on the NSTokenField that can let me know when the user has moved the focus out of the NSTokenField. Since NSTokenField is...

How to connect a Windows client to an OSX Server with AFP

We are using OSX servers and clients with AFP (Apple Filing Protocol) and want to connect the only Windows (Vista x64) client to the server shares without having to enable SMB. Is there still any AFP client for Windows available? All that I've found are Windows AFP servers, but that's not what we need. ...

Programmatically get processor details from Mac OS X

My application running on Mac OS X that needs to retrieve details about the machine it is running on to report for system information. One of the items I need is details about the processor(s) installed in the computer. My code currently works, but is far from an ideal solution, in fact I consider it a bad solution, but I have had no l...

Multiple mice on OS X

I am developing an OS X application that is supposed to take input from two mice. I want to read the motion of each mouse independently. What would be the best way to do this? If that is not possible, is there a way to disable/enable either of the mice programmatically? ...

OS X gcc "installation problem"

OS X 10.5.6, Xcode 3.1 with iPhone support. After compiling some apps for iPhone device in Xcode, I've noticed that calling GCC from command line no longer works: $ gcc gcc-4.0: installation problem, cannot exec '/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//i686-apple-darwin9-gcc-4.0.1': No such file or directory Note ho...

Running django on OSX

I've just completed the very very nice django tutorial and it all went swimmingly. One of the first parts of the tutorial is that it says not to use their example server thingie in production, my first act after the tutorial was thus to try to run my app on apache. I'm running OSX 10.5 and have the standard apache (which refuses to run ...

Mac OS X New Users From Command Line

I need to add a new user via the command line in single-user mode. I reinstalled OS X earlier, and for some reason, it didn't create my user account properly. Now I can't log in. So I'm wondering how exactly I can go about creating a new user account without reinstalling everything. I tried this, but it didn't work: http://osxdaily.c...

Running Visual Studio in Parallels for mac - problem with debugging sites sitting in os x drive

I've installed parallels desktop on my MacBook to be able to run Visual Studio 2008 in a XP installation. Everything works great except when I decided to put my websites in my sites folder in the os x file system (Which by default automatically happens because the My Documents folder is mapped to the Mac's Documents folder, and I'd rathe...

Copy Protection (mac apps): most cost effective solution??

... after having just read http://www.cocoadev.com/index.pl?CocoaInsecurity ... I am curious to know about your experiences with copy protection solutions for protecting macintosh applications. Is it worth investing any time in at all? OR Is it worth investing money in a commercial solution? (& if so, which?) please consider in your a...

com.apple.Dont_Steal_Mac_OS_X

com.apple.Dont_Steal_Mac_OS_X is a IOResources provider... Class Inheritance: Dont_Steal_Mac_OS_X : IOService : IORegistryEntry : OSObject how does it work? what does it do? thx->adv() |K< ...

OSX equivalent of ShellExecute?

I've got a C++ app that I'm porting from Win32 to OSX. I'd like to be able to launch arbitrary files as if the user opened them. This is easy on windows using ShellExecute. How do I accomplish the same thing on the Mac? Thanks! ...

File system testing tools

Hello, We are developing file system filters and we need to automate the testing on all platforms we are targeting (Windows, OS X, Linux). What tools would you recommend that will check if a particular mounted file system behaves properly. Here the word "properly" probably needs some clarification: Since we are developing filters (not ...

How to find the other point of a Unix domain socket on Mac OS X to write/read it?

Hello everyone, I listed open file for a process (a daemon) on my box which runs Mac OS X 10.5 : >lsof -p 89 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME ... xxxxx 89 xxxxxxxx 9u unix 0x34f8990 0t0 ->0x34f8880 I 'd like to find a way to open this socket and write in it. (that's my obsession...

Cross-Platform Objective-C / C++ Development

I work in a team of developers, one of us works specifically under Windows, and I work primarily in Mac OS X. We're wanting to develop C-based applications either in C++ or Objective-C however I'm not really knowledgeable in how to go about a cross-platform development project. Is it viable to work in C++ using Mac OS X? Obviously the...

What is the correct directory layout for a web server under Mac OS X?

I'm packing the Cherokee Web Server, a very very fast webserver with a nice web-based GUI for configuration written by the spanish hacker Alvaro Lopez Herrera and available from http://www.cherokee-project.com. So far, I've managed to create a .pkg installer using Apple's PackageMaker.app that comes with Xcode but i'm installing everyth...

How do I programmatically get the shortcut keys reserved by Mac OS X

I'm working with an application that allows the customer to customize what shortcut keys are assigned. One thing I want to do is warn if a shortcut key is chosen that is already in use by Mac OS X. I'm trying to work with CopySymbolicHotKeys, but I'm not sure that I'm using it correctly as it lists commands as being reserved even thoug...

Call another program's functions?

So I have this program that I really like, and it doesn't support Applescript. I'd like to automate it a little bit. Now, I know that I could use applescript to tell the program to tell the menu to tell the submenu to tell the menuitem to activate or whatever, but frankly I don't like applescript very much anyway. When I open the NIB fi...