cocoa

multipart/x-mixed-replace with iPhone SDK

I'm trying to download several images in response to a single http request. On the server side (java) I'm using oreilly multipart response and I'm getting my datas in my iPhone Simulator in didReceiveData (approximately one call for each image) after a call to didReceiveResponse (approximately one call for each image as well) in my deleg...

Drawing a scatterplot with Cocoa

How should I best approach drawing a scatter plot diagram in Cocoa? ...

NSScrollView scroll downward when resizing?

Hello, I have a NSScrollView with a custom view inside and when I resize the NSScrollView, the height grows and it scrolls upward. Unless there is an easier way, I'll probably have to register a notification to see if the view changes size and then adjust the scrollPoint: to a new point. I'm having trouble getting method to work smoot...

Vertical slider in cocoa application menulet?

I would like to add a vertical slider to my cocoa menulet application. Just like the vertical slider in the system volume menulet. How do I add this using Interface Builder? And if not with Interface Builder then how? ...

How can i add third party framework to my cocoa project

I want to add third party framework "log4Cocoa" to my cocoa application. I followed the steps to add the framework and created "Copy Files" phase as well. Project is getting build without any error. Problem occurs when i try to run the application i get error saying "Data Formatters temporarily unavailable, will re-try after a 'continue'...

Appending string in NSXMLNode

Hi, When I call the method setStringValue: mCurrentString when </Text> is encountered, the child elements which are already attached to the element are detached. Can any one suggest why it is happening so. The sample XML file goes like this: <?xml version="1.0" encoding="UTF-8"?> <Test xmlns:xsi="http://www.w3.org/2001/XMLSchema-inst...

Inserting image into NSTableView using bindings

I've an NSTableView bound to an NSArrayController with two columns. One column is bound to the arranged objects of the array controller and displays a string. I'd like to display an image in the other column, but I just can't make it work. I've dragged an NSImageCell to the column and set the image by hand but it won't show up at runti...

Recording audio on Mac

Hi I am developing an application which access my audio input device and record audio from my microphone. Here when i am pressing START button it have to record audio from microphone and have to stop recording when pressing STOP button. My device is Lynx-AES16 and i got driver from there site. In windows i am accessing the machine(Lyn...

Cocoa: Build Warning that s Forward Declared Class's and @interface May not Exist

I am trying to build the Clustering Plug in my project under Leopard. I have following two questions. In the project an interface class is defined as @interface ClusteringController : NSWindowController { ....... ..... .... } @end. And this class is used in implementation class using forward declaration: @class ClusteringController...

Understanding how app delegates and view controllers relate to each other

I'm tryin to grasp the fundamentals of Cocoa (Iphone) MVC design, but it's being quite tough. I've come accross several example applications, from the web, books.. but I've found nothing related to what I'm searching, since most of the examples just present a simple app (ie, a viewcontroller with a flipside viewcontr and a bit more..). S...

Set path to .dylib path in Cocoa app

I'm developing a Mac OS X Cocoa app and want to use several .dylib libraries. How do I set the path to a .dylib which resides somewhere in my Application folder? What if the path resides in different directories on different computers or is not existent at all? ...

OBjective-C : Use NSTimer while the app is close

hi , it is possible to use a timer that is working when the application is closed? and when the timer is finish it send a push notification ?? thx ...

Is Qt 4.6 compiled with Cocoa by default on Snow Leopard?

At work, I was told to configure and build Qt 4.6 with the cocoa flag ./configure -cocoa Instead I just ran configure without any flags on my Mac OS X 10.6 machine. Does that mean I have to reconfigure or is cocoa linked by default in Snow Leopard? Alternatively, how can I check if my Qt build is linked against cocoa? ...

What is a document in this context?

I'm a bit confused regarding the document architecture. Lets look at MSN for Mac - what would the document be in that application? The contact list? The text we insert to talk to other people? When the need comes to save or read data into the application, what type of data should it read? Contact lists or chat logs? Update: Pushing thi...

Custom NSView Fill Paints Over Bottom Bar

I have a window which has a custom NSView and has a bottom bar with controls on it, one of which is an NSColorWheel. For simplicity sake the Window is 332px high, with the custom NSView being 300px high and the bottom bar being 32px high. The bottom bar is created as part of my awakeFromNib when the app loads the window using the follo...

Opening HTML source code in Cocoa

I'm trying to display HTML source code in my NSDocument based application. However, it renders the page as Safari would show it. Here's the code that I use to open HTML: NSData*data; NSMutableDictionary *dict = [NSDictionary dictionaryWithObject:NSHTMLTextDocumentType ...

read from NSMutableDictionary without leaks ;)

Hello everyone. I've searched for some time already so I ask my question. I want to display data in a UITableView. each content of each cell of this tableview is set in an object specially created for this purpose (cellPlainObject). a cellPlainObject contains many strings, images and so on ... theses cellPlainObject are storred in a N...

NSSegmented Control Not Selecting

I have an NSSegmentedControl with the textured rounded style, and with the selection mode set to 'any'. The problem is that it is treating it like select none. When I switch the style to capsule, it works correctly. I am using this in a toolbar, although I have tested this in a view (on two different computers) as well and it behaves ...

share a property among different instance of the same class

Is it possible to share one parameter of a class among all the instances of this class, in objective-c?: @interface Class1 : NSObject { NSString* shared; /** shared among instance (this is not, but defined somehow) **/ NSString* non_shared; /** other parameters non shared **/ } In the program then, each instance of Class1 has ...

What's the proper NSDateFormatter format for this string?

February, 26 2010 21:34:00 Based on all the documentation I can find, MMMM, d yyyy H:m:s should be correct - but my NSDate dateFromString is returning null. ...