During the execution of my program I'm getting the following output in the XCode debugging console:
<Error>: CGContextSetTextMatrix: invalid context 0x0
I have no idea where in the application this NULL-context is being passed to the OS. Anyone know of a good technique to hunt it down? Can I break into the application when something i...
Anyone have documentation/tips/tricks/advice on how to debug an application from another computer? I have a MacPro (10.6.1) and a MacBook Pro (10.5.8), and I'd like to debug an application residing on the former from the latter. Both are running XCode 3.1.3.
...
I'm running into problems using AWT classes on OSX (10.5.8) with Java 6 (1.6.0_17 JVM: 14.3-b01-101).
Trying to load java.awt.Dimension the code just freezes, this happens in Eclipse or from the command line. Anyone experiencing same problems ?
The class is used by JAI in the following code:
public static byte[] resizeAsJPG(byte[] imag...
I'm using PackageMaker (ver 3.0.3 on Leopard 10.5.8) to install an application and want to check the Model Identifier & CPU prior to installation. The application does not work with certain models of MacBookPros. I've tried to use a pre-install shell script where I grab the system_profiler output and grep it for specific Model Identifier...
Is there a fast way to make headers public when setting up a Framework in Xcode? I always have to click through one by one, changing each one from private to public. This irks me. Thanks.
...
QuickTime provides a set of APIs named "Windows API", as described here.
Its description tells the APIs are used for Windows, but the references also says the APIs are available on OS X 10.3 and later. The function of those APIs are mainly thread synchronization or thread scheduling.
Why those APIs marked "for Windows" are available on...
I've written a nice Python application that is basically an HTTP proxy for SMS modems, and I'd like to make it a double-clickable application on Macs. So far I've been including a .commmand file which is double-clickable, which basically consists of
cd `dirname $0`
(sleep 8;open http://127.0.0.1:8080/)&
mac/slingshotsms.app/Contents...
Hello
I am working with Glassfish v2 on a Mac OS X. Today, I have added to my application some classes of the java.awt package ( Image and Graphics2D ).
For some reason, an application icon of a Java cup appears in the Dock, named com.sun.enterprise.server.PELaunch. It never happened before I start to use the awt classes. Is it normal ?...
I have a Ruby script that I built in TextMate and can successfully run in TextMate.
I can also successfully run this script straight from the terminal.
The script has this chunk of code in it:
# Get the XML file
puts 'Opening the file'
open("messages.xml", "r") do |f|
puts 'File is opened'
theXML = Hpricot::XML(f)
puts 'Tryin...
I am making an Cocoa app, using Core Animation to create custom UI. However, whenever I drag some layers around, they often leave some "residuals/traces" onto the other layers.
So far, my guess is that it is related to my usage of [setNeedsDisplay]. To my understanding, as I drag a layer around, I don't need to call this method to that ...
I am trying to figure out MongoDB in order to evaluate whether it is a route I would like to take for future applications or not. In order to deploy it sensibly on my server, I would have to run it with authentication enabled (i.e. with the --auth argument or with auth = true in the config file).
Installation seems relatively straightfo...
I am trying to create rectangular metal toolbar icons for a mac app like the ones seen in Safari, but can't seem to find any information on the pixel size.
Human Interface Guidelines recommends that metal toolbar buttons should not exceed 19x19, but doesn't specify what the size of the icon should be if the user chooses "Use Small Size...
Hi
We have built a Mac OSX installer which includes a driver that support some functinalities, hence we need to restart the machine after the installation. However, i wouldn't want to force it, but to allow users to postpone the restart for later (and meanwhile using the software without the driver)
we couldn't find any option for that...
Is there a way to satisfy a certain port dependency with another package (than the specified one) in MacPorts? More specifically, to use the package XYZ-devel instead of just XYZ for a second port that requires XYZ?
Thanks in advance.
...
So awhile back I made a cocoa widget that was a button that when pressed, would pop up a popup menu and handle the selection. This was quite trivial using the NSPopupMenuButton class but now I need to do something slightly different. I have an openGL widget and when I click on a certain part of this widget, I need to pop up the same po...
I'm trying to configure PyDev in eclipse, and as part of that I'm trying to add some source folders to the External Libraries section for PYTHONPATH. However, when I click "Add source folder" in eclipse, it's not letting me drill into any .app directories. Normally, in regular Finder, I would right click and choose "Show Package Contents...
I realize this is a bit insane, C# being a Windows language and all, but I want to start learning C# mostly because I'm interested in ASP.NET MVC. I work as a web developer by day and my office is completely run on *nix machines. The developers and all other staff use Mac OS X and our servers are all some variation of Linux.
To be hones...
This is just for curiosity.
Exposé has two functions, among others, that rearrange windows on the desktop, one shows all the open windows so the user can see windows that are hidden below others, and other function in which moves all the windows to the sides letting the user interact with the desktop.
I just wonder if someone knows...
In a project where some of the files contains ^M as newline separators. Diffing these files are apparently impossible, since git-diff sees it as the entire file is just a single line.
How does one diff with the previous version?
Is there an option like "treat ^M as newline when diffing" ?
prompt> git-diff "HEAD^" -- MyFile.as
diff --...
Instead of requiring my users to drop to Terminal and start my app via mono <x> command, I'd like to give them an experience of clicking on "X.app" and Mono runtime launches my .NET assemblies.
Anyone done this?
...