Hi,
I am sending a request with POST data to a web server. The web server returns with JSON response in case of an error or the file data itself if there are no errors.
I would like to track the progress of the file data response. My code is based on the the sample code from ASIHttpRequest Tutorial
ASIFormDataRequest *request = [ASIFo...
I was wondering if and in how many way an app can access specific funcions of another app.
for example
open an url in safari/firefox/chrome
run a javascript in current browser-tab
play/pause itunes
rename selected files in Finder
I am aware of the existence of applescript but i was wondering if that's the only way i have to int...
I have created a CGBitmapContext of 256 x 256 and I have a CGImageRef that I want to draw into this context. My goal is to crop the image (and ultimately create tiles of an image), but if I use CGContextDrawImage, Core Graphics scales the image to fit the context.
So the question is, how do I make sure that only a portion of the CGImage...
Does anyone know how to get the NSDate of the coming friday's 20:00 ?
...
I'm struggling to find a simple term to describe the collection of "soft" technologies used in Cocoa development:
KVC/KVO
Bindings
Dynamic messaging
Message forwarding
Dynamic typing
Is there a general term that can be used to lump all of them together?
...
This is pretty weird and I would very much appreciate all help =)
I have a document based app where it should be possible to perform some actions on the document file. To do so I'm saving the document every time the document actions are called. To do so I'm using the method:
saveDocumentWithDelegate:didSaveSelector:contextInfo:
Th...
Hi Peoples, I need to catch and log all messages sended by objects in Cocoa app. And also I need list of object instances in runtime. It's is posible?
...
I've discovered CADisplayLink for IOS 3.1+ which triggers events when the display has been refreshed, effectively allowing you to synchronise with display updates without having to use NSTimer.
Is there an equivalent for timing when writing opengl applications under macos/cocoa?
...
I have a client inquiring about developing a Cocoa application that would open Illustrator files. How viable is this in your opinion? How closed is the format? I can't seem to find any useful information on Adobe's site.
Thanks in advance!
...
Hi Cocoa Developers,
i am trying to send mouseevent (MouseClick or RightMouseClick) to a NSView... in my case a WebView, that contains a loaded Website. I want to script some clicks on links etc. How is it possible to create a NSEvent and send it to the WebView to perform clicks?
Thanks a lot
ksman
...
Does anyone know what the limitations are on image size with custom CIFilters? I've created a filter that performs as expected when the images are up to 2 mega pixels but then produce very strange results when the images are larger. I've tested this both in my cocoa app as well as in quartz composer. The filter I've developed is a geomet...
I have an iPhone app with a main view that has a UILabel and a UIButton. When the button is clicked, I display a second view. The second view has a text box and an OK button.
I want the user to enter something in the second view's text box and then click the OK button; this should close the second view and apply the entered text to th...
How do I type a square character in Xcode? Not as program code but in a string.
I tried to copy a character but its not working. I am still stuck with:
aCounty.area = @"301.338 km2";
...
Hi,
I'm having a problem figuring out how to represent a many-to-many relationship model in a NSTokenField. I have two (relevant) models:
Item
Tag
An item can have many tags and a tag can have many items. So it's an inverse to-many relationship.
What I would like to do is represent these tags in a NSTokenField. I would like to end up...
I'm learning ObjectiveC with "Programming in Objective C" by Stephen G Kochan and I'm having some difficulties with an example. It creates a simple Fraction class that inherits from Object. That's where I get into trouble, when I try to send messages that are understood by Object instead of Fraction, such as init, alloc or free (see cod...
How can I get the drawing in a graphics context as an image?
...
Hi,
I wrote a method for load Image into CALayer. This is the code:
- (CGImageRef)loadImage:(NSString*)path {
// Get data image
CGImageRef image = NULL;
NSData *data = [NSData dataWithContentsOfFile:path];
CFDataRef imgData = (CFDataRef)data;
CGDataProviderRef imgDataProvider = CGDataPr...
i have an NSTableView with custom view cells from NSCell
i'm now trying to get the double click action with this code
[theTableView setDoubleAction:@selector(myDoubleClick:)];
and i have the method set like this:
- (void)myDoubleClick:(id)sender{
NSLog(@"double click");
}
when i double click the cells nothing happens and th...
I made a preference pane and every time it loads the System Preferences loses focus. If I remove all controls from my pref pane window the issue will not occur but as soon as there's any sort of image or control in the window it occurs.
What am I missing?
...
How do I change the name that shows up above my app in the Dock on OS X? (I've tried renaming the target and renaming my project. And, I've Googled it.)
...