mac

What is CodeResources in Cocoa Mac apps?

I see these CodeResources folders in some of the system Mac apps and some third party apps. What are they? ...

How can I set an int value in some code to be equal to a value in a text entry box?

I'm trying to get a value from an object in my mac application. The title says it all. ...

What is the best way to create a "stop progress" button like in Safari's Downloads window?

The Apple Human Interface Guidelines say: In the Downloads window, Safari uses the free-standing NSImageNameStopProgressFreestandingTemplate image inline with a progress indicator to allow users to stop an in-progress download. The NSImage documentation says something similar. However, creating an NSButton using NSImageNameStopPr...

Retrieve names of running processes

Hi everyone, First off, I know that similar questions have been asked, but the answers provided haven't been very helpful so far (they all recommend one of the following options). I have a user application that needs to determine if a particular process is running. Here's what I know about the process: The name The user (root) It sh...

How is "clean" testing done on the Macintosh without virtualization?

One of the things I've run across on Windows is when a web browser plugin or program you're developing makes an assumption that something is installed that, by default, isn't always present on Windows. A perfect example would be .NET - a whole lot of people running Windows XP have never installed any versions of .NET and so the installer...

when to use "willChangeValueForKey" and "didChangeValueForKey"?

I saw these lines in a demo project, but I couldn't understand why it did that. [self willChangeValueForKey:@"names"]; [self didChangeValueForKey:@"names"]; It called didChangeValueForKey immediately after willChangeeValueForKey. Does it make any sense? Furthermore, when should be the right time to call this two methods? Thanks a lo...

Obj C - how to customise the interval between slides with IKSlideShow

I'm very new to Objective-C and Cocoa but I've made a simple app which uses ImageKit to present a slideshow using the IKSlideShow class. However I've got a bit stuck with something I thought would be simple. I want to increase the time photos are displayed on screen when the slideshow is playing, but I can't see how to do it effectively....

example of use of CGSGetWindowEventMask and CGSGetWindowGeometry

Hello, I am looking for a example on how to use CGSGetWindowEventMask and CGSGetWindowGeometry functions. Do you have any working example? Thanks in advance :) ...

How do you programmatically press a toolbar button with AppleScript?

I hope this isn't too obvious, but I'd like to press one of the toolbar buttons within an application by means of AppleScript. Background: The button doesn't have any menu item or keyboard shortcut. Thus, I can't activate it by any of those methods; I need to find an AppleScript way of actually 'pressing' the button. ...

Are there more Cocoa and Cocoa Touch videos which are worth looking at?

To gain a better understanding, I think it would be great to watch every video available on the net. For me, training videos became sort of entertaining. I love them! And at the same time, it's the most productive form of "watching movies". Unfortunately, I tend to find videos from conferences or podcasts only by accident, so maybe you ...

WinXP Parallels Guest with OS X host -- communication between the two?

The setup: Windows XP guest OS running inside Parallels 5 on a OS X 10.6.2 host. I have a win32 application that runs in windows that communicates with other programs by sending out keystrokes to the program in focus. I can run this software inside parallels just fine, but I need a way for it to communicate (via keystrokes) with native...

add a custom view/windows in the mac os X dock

Hello, I would like to add a custom view (a pager) in the dock, just before the trash and was wondering on how to perform a such task. Do you have any pointer to help me to start? Thanks in advance for your help :) regards, ...

Can I install WhizzyTeX for Emacs on a Mac (is Mac OS X a unix environment)?

I think my question is pretty stupid, but here it goes: I am using Aquamacs, and I want to install the WhizzyTeX mode. The website for WhizzyTeX says that "it is designed for Unix platforms". I read that Mac OS X is unix certified, but does that mean I can install WhizzyTeX on my mac? If yes, can I install and use it with Aquamacs or ...

performing simple buffer overflow on Mac os 10.6

I'm trying to learn about stack base overflow and write a simple code to exploit stack. But somehow it doesn't work at all but showing only Abort trap on my machine (mac os leopard) I guess Mac os treats overflow differently, it won't allow me to overwrite memory through c code. for example, strcpy(buffer, input) // lets say char buff...

installing opencv for python issues

I'm running OS X Leopard. I followed this site to install it. Trying to run any demo script, I now get "No module named opencv.cv", which is obviously stopping me from doing any programming. I am running python 2.5.1 (yes, I know it's kind of old). Why would this be, and how can I solve it? Thanks ...

Trying to compile a linux-based app on Mac OS X

I'm just trying to compile the linux-based FCEUX (NES emulator) on my mac, OS X 10.5 Leopard. I got all the dependencies (SDL, GTK+ 2) going and everything but of all things this is now my problem: Undefined symbols: "_compress", referenced from: SaveSnapshot() in video.o "_gzclose", referenced from: FCEU_fopen(char const*, char const...

Mac OS X, MySQL Preference Pane doesn't work

I downloaded and installed MySQL 5.1.47 for OS X 10.6 using the DMG archive: mysql-5.1.47-osx10.6-x86_64.dmg I also installed MySQL.prefPane and MySQLStartupItem.pkg. MySQL.prefPane is a Preference Pane. The problem is, whenever I attempt to start/stop MySQL from the Preference Pane, System Preferences just hangs. It runs at about 50%...

Mac, PDFKit, PDF/X

I'm in need of generating and viewing PDF/X-1a. After spending quite some time I came to the conclusion that the only way (hopefully someone will prove me wrong) to achieve this is to use Cocoa. More context: I need to generate PDF/X-1a, that is, all the fonts embeded, spot colors, overprint, ... preferably from Python. But the only lib...

How would I use a button on my app to set the current URL that a WebView is showing?

I need help. The title says it all. Thanks so much! :) ...

How do I build mDNSResponder?

I have tried checking out the mDNSResponder source from Apple's SVN host, with the thought of compiling it and tweaking it. This failed miserably. Here is the last line of the output of cd trunk SRCROOT=. make I get the same error for several tags in the SVN tree, so I'm not sure if there is something on my end wrong? The following...