how to call a method in UISearchBar
hi all i want that when user input in search box then this text is store in global variable and a method is called which in another class ,how should i do this..... any idea please Thanks..... ...
hi all i want that when user input in search box then this text is store in global variable and a method is called which in another class ,how should i do this..... any idea please Thanks..... ...
Hello, I have a UIViewController and I would like it to call drawRect so i can draw on the view but nothing happens. #import <UIKit/UIKit.h> @interface ViewController : UIViewController { ...code... } @end and the implementation #import "ViewController.h" @implementation ViewController -(void) drawRect:(CGRect) rect { draw a po...
Hi, I have a basic doubt about AudioQueues, I am using AudioQueue to record and am basically following the SpeakHere app. I found out that whenever I pause recording using the api: AudioQueuePause on AudioQueue object, the recording is not paused immediately. Is there a callback in AudioQueues which intimates the delegate that audio rec...
Dedicated to all who likes low-level Window Server (CoreGraphicsPrivate.h, etc), X11 on Mac, SIMBL and other crazy stuff :) There's a simple X11-emulated application on Mac (like xterm, xeyes and so on) with one window. While running, X11 somehow creates a native Quartz window to represent this emulated application, and this window is a...
I have an NSDictionary with NSStrings Some of the valueForKey:@"Key" have no entry so it's (null) NSMutableString* addressDictionaryToString = [NSMutableString string]; // use mutable string! for (NSDictionary* item in address) { // use fast enumeration! [addressDictionaryToString appendFormat:@"%@, %@, %@, %@", [...
Hi, Anybody know how to generate chapter metadata in Mac OS X? (preferably Cocoa). I've tried to create an M4A file by concatenating two AIFF files. The M4A was generated fine but the chapter marks are all gone. Here is my prototype code. Is there anything wrong with it? -(void) generatePodcast { NSLog(@"Generating..."); NS...
How can I download and open a .dmg file using cocoa or applescript ...
I mean a window which will not be accessible via Cocoa, Carbon or other CoreGraphics API for obtaining NSWindow *, WindowRef and others. Like X11 application on Mac does. Such a window that if you pass its window ID to [NSApp windowWithWindowID] or HIWindowFromCGWindowID() they both return NULL. Thanks! ...
Trying to change the selected text background color for an NSTextField (we have a dark UI, and selected text background is almost the same as the text itself), but only NSTextView seems to allow us to change this. So we're trying to fake an NSTextField using an NSTextView, but can't get text scrolling to work the same. The closest we g...
How can I display an NSAlert when an NSWindow attempts to close. This will also have to be turned on and off. ...
I'm working on a product with a plugin architecture and I wanted a way to inject a help book from a plugin into the help book for the main application. Example: Lets say I have an application called FooShare that allows a user to share videos. Different plugins let the user share to different places like YouTube or Twitvid. I want the u...
Early warning - code sample a little long... I have a singleton NSMutableArray that can be accessed from anywhere within my application. I want to be able to reference the NSMutableArray from multiple NIB files but bind to UI elements via NSArrayController objects. Initial creation is not a problem. I can reference the singleton NSMutab...
I would like to generate ics files. Are there any libraries or APIs that would be of help please? Thank you ...
How do I go about adding/removing the window border after it has been created? the window was already designed in interface builder and I would prefer to avoid writing the window purely in code as I am still a long ways before i can say i am experienced with objective-c/cocoa. Example Program: a single window with the border initially, ...
Hi, I am trying to keep close to the MVC approach to programming in an objective C application. I have a model class and two View Controllers. @interface Disc : NSObject { NSString *discType; NSNumber *capacity; } @property (nonatomic,retain) NSString *discType; @property (nonatomic,retain) NSNumber*capacity; @implementation Dis...
I keep getting this warning warning: passing argument 1 of 'CGPathMoveToPoint' discards qualifiers from pointer target type I am calling the function like this const CGAffineTransform m = CGAffineTransformIdentity; CGPathMoveToPoint(path, &m , nextPos.x, nextPos.y); I already tried CGPathMoveToPoint(path, NULL , nextPos.x, nextP...
Instrument reports leak for this simple use of NSURLConnection: #import <Foundation/Foundation.h> int main (int argc, char ** argv) { NSAutoreleasePool *pool = [NSAutoreleasePool new]; NSURLRequest *theRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:@"https://gmail.com/"] cachePolicy:NSURLRequestReloa...
Hello All, I would like to put my foot in world of iPhone programming. I got fair bit of experience with C# coding. Should I go and start learning objective-C even before touching cocoa [or] there is better approach (i know nothing about iphone programming). Are there any recommended books / blogs I should go through for my learnin...
Is there an easy way to make an iPhone application communicate with a Mac app? By communicate, I mean able to control certain things within the mac application, like control a character on the monitor ...
I want to use a command-line with a argument to call my cocoa app , but in my cocoa app ,how to receive the argument , this argument is a file path, thank you very much! ...