How to resize a window of any application programmatically with objective-c / cocoa? So far I've got the app name and the window number but don't know how to access the window.
I could do it with AppleScript but want to learn it with objective c.
AppleScript example:
tell application "System Events"
set frontApp to name of first a...
My application uses a black navigation bar and other custom colors for various UI components and the dark-blue tinted alert views look really out of place.
I'd like to make the alert view translucent black without having to resort to using an image file.
I'm not opposed to generating the UIImage, since I get that the only way to change...
In OS 3.1, Apple provides a way to overlay custom controls on the camera view (UIImagePickerController).
However, the properties and methods to do so weren't available in OS 3.0, and as far as I can tell, all you can do is hack the view hierarchy in 3.0.
So, I have a couple of related questions:
1) Is hacking the view hierarchy the on...
I have a plist that is processed with a precompiled header file and in it there is the "variable" VERSION_STRING used a few times in such fields as CFBundleGetInfoString, ie the value for the key CFBundleGetInfoString is: MyProduct VERSION_STRING Copyright © 2009 MyCorp
In MyHeader.h (which is the set as the Info.plist prefix header I w...
I am using RegexKitLite and I'm trying to match a pattern.
The following regex patterns do not capture my word that includes N with a titlde: ñ.
Is there a string conversion I am missing?
subjectString = @"define_añadir";
//regexString = @"^define_(.*)"; //this pattern does not match, so I assume to add the ñ
//regexString = @"^def...
I am wondering how to make the typical "range selection" bar, as seen in Photoshop and many other applications. Cocoa/Cocoa Touch only provide the very basic slide bar.
...
i want the image will be displayed and then hide and so on, i tried nil and blank ...
-(void) animationGlaw {
glawBall.animationImages = [NSArray arrayWithObjects:
[UIImage imageNamed:@"1.png"],
[UIImage imageNamed:@""], nil];
glawBall.animationDuration = 0.50;
glawBall.animationRepeatCount = 0;
...
Hi all,
I am creating instances of a class FlickrImage parsing a Flickr API photos response. The class has a method getLocation that does another API call to get the geolocation:
NSLog(@"getting location for %i",self.ID);
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
OFFlickrAPIRequest *flickrAPIRequest = [[OFFlickrAPIReq...
hi. i have a very basic question. i've never worked in XCode before but i am designing a plugin (objective-c) for an open source radiology program called OsiriX. i can get the thing to compile fun and i can even get the plugin to run in OsiriX. but i'm not sure how to run/debug it from XCode. Run/Debug is grayed out on my xcode. is it be...
Hi guys,
I have a class that calls another class to parse (NSXMLParse) from a URL. Now I would like for the class calling this one to know when it has finished, so that I can populate the UI. I am guessing a delegate would be the way to go but ive never worked with one and would need some guidance as to how this would be wired.
Thanks
...
how do i create a restore point (to save the current position for restarting the animation later) for the say1 object (s and also how to call it.
thanks.
- (void) doneThing {
say1.hidden = FALSE;
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.4];
CGPoint destination = CGPointMake(152,-20);...
I have an NSTableView with some cells that where the value of enabled is set through bindings. I want to be able to change the colour of the cells depending on whether the cell is enabled or not. Previously I have done this through the NSTAbleView delegate method tableView: willDisplayCell: forTableColumn: row: which up until now worke...
Are the runtime interfaces(such as __objc_exec_class()) for Objective-C programs specified/documented anywhere, or they are (compiler-)implementation defined?
The closest thing to a reference I have found are the GCC headers, but I'd like to know if there is some sort of reference document.
...
Hi All,
Any idea how to read a .ppt file in Cocoa Touch ?
I tried to load the contents of the file in UIWebView but it didn't work.
Here is the code :
[aWebView loadData:[NSData dataWithContentsOfFile:filePath]
MIMEType:@"application/vnd.ms-powerpoint"
textEncodingName:@"utf-8"
baseURL:[NSURL fileURLWithPath:f...
Hi I'm writing this question because I'm a newbie in ObjC and a lot of doubts came to my mind when trying to make my fist training app. The thing is that I have a strong background in C, I've been programming in Java for the last year and I've done some collage stuff with Smalltalk (I mencione this because those are my programming refere...
I have file on local desktop.
I'm converting its url by using [NSURL fileURLWithPath:filePath] but I'm getting error. Here is my code:
NSString* filePath = @"/Users/Desktop/bb.ppt";
[powerWeb loadData:[NSData dataWithContentsOfFile:filePath]
MIMEType:@"application/vnd.ms-powerpoint"
textEncodingName:@"utf-8"
...
I have placed two button in navigation controller on click of each button it should open new view , how to load a new view on click of a button
...
Hi all,
I'm using GNUstep to begin with learning Objective-C.
I could find the header files for all, but don't know where to find its implementation files.
I was thinking, with that I can understand the whole programming style and many more.
I am working without mac , so if some body knows about any good tutorials , that i can use to i...
I'm using objective-c (obviously, I guess) and I'm wondering if there is a (simple) way to present a modal view but have the view slide in from the right side of the screen.
UIModalTransitionStyleCoverVertical has the new view slide in from the bottom, so I would naively think that there would be a Horizontal counterpart, but I can't ...
Hi,
I try to retrieve HTML data from my database and display them in a UITextView, the only problem is that I don't know how to tell him that its HTML code and not only text, for the moment I have that:
NSString *aDescription = [NSString stringWithUTF8String:(char *)sqlite3_column_text(getFicheStatement , 1)];
Thanks,
...