Hi,
I am using iPhone 2.0 SDK. I used the API UIImageWriteToSavedPhotosAlbum to save an image.
A Saved Photos album gets created on the iPhone Simulator when I save an image but tested on the device the image gets added in the Camera Roll album. While debugging, no errors occur but the Saved Photos album is not created on the device.
...
I'd like to send an action to another object using cocoa. Ideally i would also like it to appear in the Interface builder.
I've tried the apple documentation, but there is something i'm missing. Adding the following, the interface building only shows the action as a received one.
- (IBAction)setTarget:(id)anObject;
- (IBAction)setActio...
So I am a new programmer and I just installed XCode on my Macbook to get the GCC. I think Xcode is the only way for getting GCC on OSX. Now when I run my Hello World application, in C++, g++ comes up saying it is version 4.0.1 but when I look for commands starting with g I also see g++-4.2. Is there any way of making 4.2 default rather t...
I really like my Mac, and I am thinking about developing Software for it some time in the future. What are the reasons why you're making Mac Software? Because you think Mac is so cool? Or is the market so interesting? I think many of us would like to know, right?
Well for me, as I said, it's the coolness of the Mac. I don't know anythin...
I have a fresh install of MonoDevelop 2.1 and Mono-Framework 2.7. When I try to create a new project, the following exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Add-in
'MonoDevelop.AssemblyBrowser,2.1.0' could not be loaded....
Greetings all,
I have a puzzling problem. I have a pointer to a vanilla NSView that was initialized in a nib. I message the nsview with
[myNSView setFrame:NSMakeRect(0,0,816,1056)];
but when I step through the debugger, myNSView has a frame of {{0,0}, {801, 1041}}. The dimensions of the rectangle are 15 less than I've specified! Thi...
I've been using virtualenv on Ubuntu and it rocks, so I'm trying to use it on my Mac and I'm having trouble.
The virtualenv command successfully creates the directory, and easy_install gladly installs packages in it, but I can't import anything I install. It seems like sys.path isn't being set correctly: it doesn't include the virtual s...
Using interface builder you can select the corners an object should stick to when resizing. How can you do this programatically?
...
I use Python 2.6 more than I use Leopard's default python installation, so I have it set as my main Python installation. But I'd rather use the default Python for a PyObjC program I'm working on. Is there any way to specify to only use it instead of Python 2.6?
...
I'm messing around with Core Data, and I am sure I am missing something obvious, because I cannot find an example that at all resembles what I am trying to do.
Let's say I'm playing around with a DVD database. I have two entities. A Movie (title, year, rating, and a relationship to Actor) and Actor (name, sex, picture).
Getting all the...
I want some personally developed JavaScript code to execute whenever I load a page in Safari. Seems like addblock for Safari does this. Anyone know how to do this?
Safari is not extensible. There's no addon framework for it. But yet there's adblock and verious other addons available for it, although Apple's Webkit and Safari developers ...
I'm trying to link to a static library on OS X. I used the -static flag in the gcc command but I an error message:
ld_classic: can't locate file for: -lcrt0.o
collect2: ld returned 1 exit status
I looked in the man pages and it reads something like:
This option will not work on Mac OS X unless all libraries (including libgcc.a) ...
I am writing an application using Core Data to control a few NSTableViews. I have an add button that makes a new a record in the NSTableView. How do I make the focus move to the new record when this button is clicked so that I can immediately type its name? This is the same idea in iTunes where immediately after clicking the add playli...
I have a QTMovieView set up as an IBOutlet. I want to play the video in full screen. Which method allows this?
...
I have an installer program that lets the user choose a directory in which to install. The JFileChooser implementation on MacOS uses a native dialog (or at least it looks native). That's great.
The only problem is there's no way to create a directory from this dialog ... you can only choose a pre-existing one, which is clunky. Is there...
I'm wanting to use an NSOpenPanel for an application I'm designing. Here's what I have so far:
@objc.IBAction
def ShowOpenPanel_(self, sender):
self.panel = NSOpenPanel.openPanel()
self.panel.setCanChooseFiles_(False)
self.panel.setCanChooseDirectories_(True)
NSLog(u'Starting OpenPanel')
self.panel.beginForDirectory...
I'm trying to spawn a Tk window from ruby script using ruby's Tk module. It works, but I cannot figure out a way to focus the spawned window. It's frustrating. If I run this code from terminal, as in $ruby screenup.rb the window spawns behind the terminal window. If I run as a shell script in Quicksilver, two windows spawn. One is t...
I have downloaded the latest build of pyscopg2 and have tried to build and install it using the directions provided. However i always get an error saying that 'w' is undeclared. Does anybody have any experience with this?
...
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).
...
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...