mac

How do I get the inner/client size of a NSView subclass?

I am doing manual layouting for my Cocoa application and at some point I need to figure out what the inner size of a NSView subclass is. (E.g. What is the height available for my child view inside of a NSBox?) One of the reasons is that I am using a coordinate system with origin at the top-left and need to perform coordinate transformat...

Getting the name of document that used to launch the application bundle on OS X

When writing an OS X Bundle application (.app), how can I get the name of the document that caused the application to be launched? Say I've associated .abcd with MyApp, when I click on foo.abcd MyApp is launched. How can I get the foo.abcd from inside MyApp? (Command line arguments only contain the process id). ...

NSTextView not refreshed properly on scrolling

Greetings, I have a NSTextView with a sizeable quantity of text. Whenever I scroll however, the view isn't updated properly. There are some artifacts that remain at the top or the bottom of the view. It appears that the view doesn't refresh itself often enough. If I scroll very slowly the view updates correctly though. If I add a border...

Finding the upper left corner in a Quartz plugin

I have a Mac Plugin for viewing images. It's originally written in Quickdraw, and I'm trying to move it to Quartz. My current problem is the origin. In QD, the origin is (sensibly) the upper left corner of the plugin rectangle. In Quartz, it appears to be one screen height below the top of the plugin rectangle (not including firefox but...

c4.5 algorithm implementation on unix/mac os

I am trying to compile and execute the c4.5 algorithm on my mac os machine (have a red hat enterprise linux 4.6 machine too), but have not been able to get anywhere with the same. Is there any one who has tried this and succeed on getting the same to compile and execute on their machines? If, so, please can you share the steps? ...

Video streaming woes

Hey everyone! I'm working on a video streaming application, where compatibility has so far been limited to Windows and IE (though it seems to work well enough on Firefox as well) I have been tasked to get it to work on Macs, and in the future Unix as well, but I figure that if I get Macs to work, UNIX will follow. We're using a Windo...

viewstate MAC failed in asp.net 2.0 while postback the page

Hi! I have a website in asp.net 2.0 with default membership provider. It was fine til yesterday. When i add custom google search box in my website now i am getting the same error Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and vali...

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...

How can my app detect a change to another app's window?

In Cocoa on the Mac, I'd like to detect when a window belonging to another app is moved, resized, or repainted. How can I do this? ...

Map the share to a drive letter In Parallels

because Parallels names the localhost as '.psf' I have problems using Visual Studio within Parallels ('Invalid URI: Host name could not be passed' error appears). I understood that somehow I have to map a folder to a drive letter in Parallels. Can someone describe me the exact steps of how I could do this? ...

Cocoa Control/View for displaying list of directories

I'm new to Cocoa development - I want to display an aribitrary number of directory paths in a control/view. What's the best type of built-in control/view for this? Requirements: This should be a flat list only and not a full File System browser. Users should be able to select one (or more) items and remove them (i'll provide a remov...

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...

any quick and easy way to capture a part of the screen? getPixel was slow and GetDIBits seemed a bit complcated as a start

I was trying some code to capture part of the screen using getPixel on Windows, with the device context being null (to capture screen instead of window), but it was really slow. It seems that GetDIBits() can be fast, but it seems a bit complcated... I wonder if there is a library that can put the whole region into an array, and pixel[x]...

What GUI options are available for Python on Mac OS X?

Is there like an AIR for python? I know I can use Cocoa with Python, is there anything else? How easy is it to get started with Cocoa for Python if you know Python. ...

Where are Eclipse key configurations saved on Mac OS X

There is no .eclipse dir under my home dir. I can't find the configuration file saving the key binding schemes. Where are they saved on Mac OS X? ...

Booking a Resource Using Entourage (MS Office 2008 for the Mac)

Does anyone know how to book a resource (such as a meeting room) when setting up a meeting inside of MS Entourage on the Mac? I found this post which says that you just need to use the mailbox name of the resource, but I've tried this out and it doesn't appear to work: I don't receive the auto accept notification like I do if I schedu...

Unhide a Document Set in XCode

Hi all, I fat-fingered my XCode Doc Set in two ways: entered the wrong password/name, and it doesn't prompt for a new one (I'll solve this in a little time) accidentally hit "Hide Doc Set" when I right clicked it, trying to figure out how to reset the name / password to try to subscribe. where'd it go?! ...

Two versions of mysql on one Mac server, need to get data from one to other

My sysadmin patches my Mac server, and suddenly MySQL is pointing at a version 5 install. Prior to this, it was pointing to a version 4 install. My data is stranded in the version 4. Somehow whenever I run the mysql command I end up in the version 5. I need to do a mysqldump of the version 4 stuff to put it in v5. I'm not sure how to:...

Core animation anchor point being ignored?

This code: (self is a subclass of NSView) rotate = [CABasicAnimation animationWithKeyPath:@"transform.rotation.z"]; rotate.duration = 5; rotate.toValue = [NSNumber numberWithFloat:(2*pi)]; rotate.repeatCount = INFINITY; rotate.removedOnCompletion = NO; rotate.fillMode = kCAFillModeForwards; NSLog(NSStringFromPoint(CGToNSP...

Java plugin development with debug interface problem

Hello i'm trying to develop an eclipse plugin (in eclipse) that uses the Java debugging interface and i'm getting the following error: Access restriction: The type VirtualMachine is not accessible due to restriction on required library /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/classes.jar Using the debug in...