Update: this question is bunk. Move along, nothing to see here. You can set the value of the password text field from either JS or ObjC. I was wrong.
I have a WebKit-based Cocoa app which loads an HTML document containing an HTML form in a WebView. The HTML form contains a password text field like:
<form name="foo">
<input type="pa...
Hello!
I have read THIS tutorial about creating Push nodes and posting/subscribing to notifications.
The only problem I have met is that it seems that notificationconf unable to create that node...
My first question: are nodename (parameter of notificationconf tool) and notificationName (NSString which I use from app) the same things...
As I'm sure you're aware it's common to include both debug and release builds of libraries in their SDKs. My question is whether there exists a standard way of going about this for a Mac OS X framework in terms of distribution and possibly Xcode integration?
One option is to ship a second entirely separate framework, e.g. MyLibrary.fram...
Hi again,
the app I want to create will have an interface very like Keynote, with a list of pages on the left and one page in full on the right. These kinds of interfaces are very common yet I don't know how to do them in Interface Builder.
Are there any ready-made components? Apple doesn't offer any, afaik. Or does every developer re...
I wrote java application and i need to make it standalone for macos(.app). Earlier I used jar builder, but now i need to execute some shell script before java application starts. How can i do it?
...
How do you create a .XPI package on a mac
...
Hi,
I'm using the glgrab code to try and grab a full-screen screenshot of the Mac screen. However, I want the bitmap data to be in the GL_RGB format. That is, each pixel should be in the format:
0x00RRGGBB
The original code specified the GL_BGRA format. However, changing that to GL_RGB gives me a completely blank result. The total sou...
I have a project in the works with OpenGL and SDL. Users have the option of using a full-screen or windowed mode for the display.
I use SDL_SetVideoMode to set up the window, but this solution destroys the original SDL_Surface context (so all my OpenGL textures get cleaned too).
How can I correctly switch between full-screen and window...
I need to install Tomcat on my local mac environment. Only tutorials I am finding are from some time ago. Running Snow Leopard. Anyone know of any good resources for this?
...
I know how to config aliases in bash but is there a way to configure an alias for a sequence of commands?
i.e say I want one command to change to a particular directory, then run another command
In addition, is there a way to setup a command that runs "sudo mycommand" then enters the password? In the MSDOS days I'd be looking for a .bat...
I'm trying to draw a standard NSImage in white instead of black. The following works fine for drawing the image in black in the current NSGraphicsContext:
NSImage* image = [NSImage imageNamed:NSImageNameEnterFullScreenTemplate];
[image drawInRect:r fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1.0];
I expected NSComposi...
I tried this but my program crashed.
- (void)windowWillClose:(NSNotification *)notification
{
[modalWindow orderOut:self];
[NSApp stopModal];
}
Thanks in advance.
...
This is basically just like an HTML file...except it calls REST API to get data from online source. How long would it take an experienced developer?
...
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
...
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...
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...
I have a Mac application bundle which is executing a shell script. The shell script calls java program 1 to do some stuff and then launches the main java application. This process leaves one icon in the Dock for the shell script which shows the name from the application folder and one icon in the Dock for the java program.
Is there ...
I am about to create a Cocoa app and I want to ensure that one day I can easily port it to the iPad or even the iPhone. How can I plan for this in advance?
I know I will have to redo all NIBs and probably design a different workflow.
But what about the code? Just replacing every NSsomething with UIsomething won't cut it, right? Any ti...
How can I know when an NSTextField has rec'd focus?
Is there a delegate method that will tell me when the user has clicked the mouse in (or otherwise selected) my NSTextField?
thanks
tom
...
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 ...