mac

Suggestion for a cross platform line graph library for .NET and Mono

Hello I'm writing a cross platform datalogging application in C# so I use the .NET compiler for Windows and Mono for the Mac. I'm at the stage now where I'm building the GUI for my logging application, I have a plug in arcitecture so am reasonably flexible on what I use. I'm looking for a charting library to initially plot simple line ...

How do I run "dot" as a command from Python?

I am using Python on Mac OSX Leopard. I am trying to run the program 'dot' (part of Graphviz) from Python: # -*- coding: utf-8 -*- import os print os.environ['PATH'] print os.system("ls >> a.txt") print os.system("dot -o9.png -Tpng ./6.dot") The command "ls" is there just to make sure that python is in the correct directory. It is. ...

Subversion: error on checkout - Mac OS 10.5

I'm running Mac OS 10.5 I'm trying to do a checkout of a online repository to a local folder, using the svn checkout command: svn checkout [url] --username [username] --password [password] [targetfolder] It starts adding files to my new working directory as expected, but then throws the following error: svn: In directory 'svn/trunk/...

How to set up USB CDC drivers on Mac OS X?

I have a custom-built USB CDC device. If I plug it into a Windows box (2k, XP, Vista), up pops the Found New Hardware Wizard and I can point it at my .inf file, which supplies a mapping from the USB VID and PID to the USB driver (in this case the inbuilt usbser.sys). Then it appears as a virtual COM port and I can set up dial-up networki...

Is anything required to get a Quartz callback besides registering for it?

I'm trying to use CGDisplayRegisterReconfigurationCallback to get display reconfiguration events in Quartz on Mac OS X. Here's the super-simple code: void CB(CGDirectDisplayID display, CGDisplayChangeSummaryFlags flags, void *userInfo) { std::cout << "In callback!" << std::endl; } int main (int argc, char * const argv[])...

Using Silverlight 3 to make a WPF Application cross platform (Windows + OS X)

Im writing a Twitter Client in C#/WPF/WCF. I(Windows) showed some of my friends(OS X) and they would also like to use it. Would it be worthwhile to convert the application into Silverlight 3 so that they would be able to run/install it on OS X? Will the full features of Silverlight 3 be supported on OS X (like the install feature), li...

How can I create a 'source list' on Mac OS X?

The Apple guidelines talk about using a source list - how do I create this source list, either in Carbon or Cocoa? Is there an official API somewhere for this component? ...

Java reports alias (symlink) as size 0 on Mac OSX. How do I get the true file size?

File file = new File("path to file alias foo"); where "path to file alias foo" is an alias reports file size to be 0 instead of the actual file size. I found a workaround to test for aliases: public boolean isLink() { try { if (file.getAbsolutePath().equals(file.getCanonicalPath())) { return false; ...

OS X Database Tools?

I'm looking for a database visualization tool for OS X. MySQL Workbench looks promising, but the binaries provided are Intel only and I haven't been able to get the source to compile on PowerPC yet. Are there any other database visualizations tools out there for OS X? What other tools do you use for database development/administration? ...

Mac OS replace ';' with new line on text file

Really basic question I'm sure for the normal Mac user but; I'm a very recent Mac convert and I want to do a quick operation on a file. I would normally do this in windows by doing a search for ';' and replace with '\n' in my favourite editor(Editplus) but this doesn't seem to work on the two editors I have installed (Coda, Espresso) o...

How do I log to file on the Mac (similar to log4net)

For my Mac app I'd like to create a log file on disk similar to those produced by log4net windows side. Things I'd like include a date stamp, logging levels (Debug, Info, Warning, Error), etc, and I'd prefer not to have to roll my own from scratch. Both VMWare fusion and JollysFastVNC do something similar to what I'm looking for, albeit...

Recommended method to create a "table" using core-animation?

What would be the recommended method to create a "table" like display (columns, rows, header and footer) using core-animation, which I can "build" using animations? I've got my data to hand in an NSDictionary and I've started laying things out, but I feel I'm probably not doing it optimally; I'm creating nested sets of CALayers and wor...

Problem running Eclipse on Mac with two users

I have installed Eclipse on my MacBook Pro (with Leopard of course) under one user and every thing works fine. When i switch my user and try to run Eclipse i'm getting error message saying to look at the log, and here is what's in that log file: !SESSION 2009-06-08 15:28:17.204 ----------------------------------------------- eclipse.bui...

NSView's autoresizing behavior

Greetings all, I hope you all can shed some light on how NSView autoresizes it's views. I've set everything up in IB and my subviews resize nicely (when I resize my window around with a mouse). However, if I do [myMainView setFrame:] with my new frame rect, nothing happens. All of my sub-views are still the original size (even though t...

Cocoa Keyboard Shortcuts in Dialog without an Edit Menu

I have an LSUIElement application that displays a menubar status item. The application can display a dialog window that contains a text field. If the user right-clicks/control-clicks the text field, a menu appears that allows cut, copy, paste, etc. However, the standard Command-X, Command-C, and Command-V keyboard shortcuts do not wor...

creating setup for mac application

Hai all, I have created a new mac application using xcode.Now I need to create a setup to install the application ..Is there any tool to create a setup file???.Looking forwrd for reply.... ...

Qt4 QGraphicsScene mac ppc 10.4 rendering bug, rects hide later lines ?

When you addRect ... then addLine ... to a QGraphicsScene, you'd expect the lines to be drawn over the rects, right ? In Qt 4.4.3, mac ppc 10.4.11, some lines are not, in the testcase below. I imagine this is a Qt / mac lib / graphics card interaction (versionitis disease) so would appreciate anyone who can say "it's clean in ...". Tha...

Advantages/disadvantages of writing a web app using Adobe Air/Java as opposed to platform specfic languages?

I need to write a web app (that also works offline) for windows and mac (and linux as well perhaps). I was wondering if I should use something like air/flash/java for this, the advantage being I will only need to write the app once. However, I was wondering if there are any disadvantages of doing it that way as opposed to ...

What is the problem with DLLs and the Registry?

Hi all, I was watching the WWDC 2009 Keynote and something someone said about Windows 7/Vista got me curious.. The speaker claimed that 7 was still a poor operating system because it still used the same technologies such as DLLs and the registry. How accurate are his claims and how different is OS X doing it? Even os x has dynamically...

Sleep OS X from Java

Hi, Really simple little function, but does anyone know how to sleep OS X from Java? Cheers ...