osx

Minimum steps to display a table-view in Cocoa OSX

Hi I am trying to create a table-view programatically using a cocoa lisp bridge called clozure CL. Now I doubt many people are familiar with this package so I will not go into specifics of my code but I am getting some very strange errors when I try to call addSubview to add my tableView to my window. I have initialized it using InitWi...

Using Applescript to create a Smart Mailbox?

I am trying to automate the creation of a smart mailbox in Apple Mail using criteria based on the currently selected message (e.g. create a folder to display all messages from the person who sent the current message). Clearly, I can go in and create a smart mailbox by hand, but because I do this regularly I am hoping to automate it. I ...

Can't install ruby 1.9.1 on MacOSX 10.6

Hi all, I can't seem to be get Ruby installed on my Mac. These are the steps I've taken so far: Downloaded the package from Ruby's site (http://www.ruby-lang.org/en/downloads/) Unpacked it running { tar xzvf ruby-1.9.1-p376.tar.gz } Went into the new ruby folder, and configured using {./configure} This is where the error happens. ...

Is there a penalty for mixing color spaces? (Core Graphics)

If I'm writing drawing code in Core Graphics on Mac OS X or iPhone OS, I can set the active fill color to red by calling: CGContextSetRGBFillColor(context, 1.0, 0.0, 0.0, 1.0); // RGB(1,0,0) If I want 50% gray, I could call: CGContextSetRGBFillColor(context, 0.5, 0.5, 0.5, 1.0); // RGB(0.5,0.5,0.5) But for shades of gray it's tempt...

Problem with building applications for 10.4

When I try to build my app for 10.4, ppc, I get the following error: GCC 4.2 is not compatible with the Mac OS X 10.4 SDK (file MBM.m) What does this mean, and how can I stop it and build for 10.4? MBM.m: http://localhostr.com/files/bb385f/MBM.m Sorry for the brief explanation, but I have to go. Please help, HiGuy S ...

JAVA_HOME is not defined correctly Error while compiling

Hi, I am developing an aplication in cocoa which uses some java classes .I am getting an error "JAVA_HOME is not defined correctly We cannot execute /System/Library/Frameworks/JavaVM.framework/Home/bin/java".I dont know how to resolve this..Please anyone help me.. Thanks in advance ...

bring the application from in focus, by clicking the icon of corresponding application

Hello All, I was surprised this doesn't happen automatically, but I would like my applications window to be in focus as I click its dock icon, when in minimized mode. Just to clarify, when I minimize the app, the window goes to dock, but when I click the its corresponding Dock Icon, the window don't come in focus. Is there anything I ...

Flash/Flex runs slower on Mac?

I was in the middle of developing a Flex applcation, and then I recently switched from Windows XP to Mac. My app is noticeably less responsive on my Mac than on Windows, and today I proved it's not a hardware issue, because I ran the App on my Mac and a Window XP on Virtual Box side by side, and IS much more responsive on XP. Things like...

Any (free) tools to compute Taylor series expansion of a function?

After painful trial and error, I arrived at a grotesque function that behaves the way I want it to: (exp(- abs(6 * (x - 0.7)) ^ 2.5 ) + exp(- (x-1.7) ^ 8 ) * 1.2)/1.5785 I only care about the values for the range 0 <= x <= 1 and the slope at x = 1. In this interval, 0 <= y <= 1 as well. Are there any free tools (web-based or MAC OS X...

How can a Cocoa app support bottomline text input?

I'm attempting to support international input in a Cocoa app on Leopard using bottom line input (A type of input method in which the user enters text in a small window, called a floating input window, that appears near the bottom of the screen). I don't want to support inline input. When the user changes the input method using the inpu...

Control Processes Started by Bash Daemon

In bash, I have created a simple daemon to execute commands when my internet connection changes: #!/bin/bash doService(){ while do checkTheInternetConnection sleep 15 done } checkTheInternetConnection(){ if unchanged since last check return else execute someCommand fi } someCommand(){...

Reasons for using command line Vim versus GUI Vim

Background I'm building an application where it detects what documents you're using from the file system. To do this it must access the AXDocument attribute of the active window. MacVim provides this. Running Vim in the Terminal wouldn't provide this. I've just put out a survey to ask what editor coders who are interested in my app use...

Kill other bash daemons from the same script

I am having a hell of a time trying to write a "kill all other daemon processes" function for use within a bash daemon. I do not ever want more than one daemon running at once. Any suggestions? This is what I have: #!/bin/bash doService(){ while do something sleep 15 done } kil...

NSTableView available for osx 10.0 but NsTableViewDataSource available for only 10.6?

I was looking at the docs for NSTableViewDataSource and they say that this protocol is only available on osx 10.6. How can this be? Isn't NSTableViewDataSource the object that contains all the data for your NsTableView? ...

Setting up an NSTableView programatically (catching tableView:objectValueForTableColumn:row:)

I am trying to setup an NSTableView programatically (I really need to avoid using IB) and all the examples I find explain how to do this using the interface building. I have created a controller class that implements the methods tableView:objectValueForTableColumn:row: and numberOfRowsInTableView: but they never get called. After I set ...

Mac os x; fast text editor for RTF format with colors and change background

Hi, I am llokig, for programming, a simple text editor, but wiuth the following requirements: 1- must be ultrafast to start 2- can use RTF format or some other else so I can color text easily, with a pane on screen where i select colors 3- it is possible to easily change the bacjground color thanks ...

For C++ MacOSX app, what threading library to use?

I'm on MacOSX, writing an app in C++. What threading library should I use? pThreads? or is there something else? Thanks! ...

Why does autotools create project-File.o on one machine, File.o on another?

I have an autotools project. The same tarball on one machine compiles the files like this: gcc ... File.cpp -o project-File.o and on the other machine: gcc ... File.cpp -o File.o Does anyone know what causes this different behavior? Both machines are identically patched OS X, with the same tool versions. ...

Locking a screen in 10.6

Hi everyone, How would I go about locking a screen like Keychain does, meaning preventing all access to Dock, menubar, desktop, etc. Basically just a black screen that I can add a password field to, for the user to return to the desktop? I am well aware of the Carbon method, but I want the NSApplication method because this is an all ...

2 basic Textmate shortcuts 'don't save' and 'replace all'

Ok, maybe they're system shortcuts. I've googled (just a bit) and couldn't find an answer. Maybe there isn't any :) Still.. I love keyboard and I use quite a few in TextMate but just realise I still use the mouse for 2 of the most common actions: How do I press search and replace after the S/R dialog box is up? - if you press enter i...