My Xcode speed has come down to a crawl. I have no idea why. CPU activity is very low on both cores, gobs of memory.
It's almost as if it's waiting for something but I have no idea what. I have disconnected all USB and FireWire devices but it helped only a little bit.
Any ideas?
...
I have a core location app that I'm writing leveraging the startMonitoringSignificantLocationChanges method to generate updates when appropriate but this does not work on older devices such as iPhone 3g.
I would like for the core location functionality to still work while the device is open, so I thought I could use a selector test to...
Hi all,
I am creating an iphone application in which I have to upload photos using different services.
I am successful in uploading photos with Twitpic & YFrog but not able to do with Plixi.
I am using Oauth ,as Twitter is not allowing Basic authentication.
If anyone has tried with Plixi ,please help me out!!
I have googled a lot but...
The below code is used in an iPad app to send an HTTP request to a Node.js web server, which produces the following error, but works fine w/ a regular HTML+browser form.
The server is Node.js + formidable which has a multipart parser that only dies on this line of code with this error:
message: parser error, 0 of 29162
bytes pars...
If I have two threads in my Cocoa app, and (let's say), I'm reading from file X on the disk with an NSData +dataWithContentsOfFile:, and another thread is concurrently updating or replacing that same file X, with, say a -writeToPath:atomically:?
I'm unfamiliar with what Cocoa's standard file read/writes modes are. Could the read operat...
I want to display a current track title with Cocoa.
For now I could get the playing title with Scripting Bridge but I don't know how to get it just after a song is changed.
Is there any way I can hook a listener to iTunes without a timer.
Thank you.
...
I build a NSWindow with a WebView in it. The the WebView loads an HTML-Page with buttons calling the JacaScript-Functions "window.close()" and "window.open('URL')" by clicking on it.
The WebView notice this and informs my UIDelegate by calling the selectors:
- (WebView *)webView:(WebView *)sender createWebViewWithRequest:(NSURLRequest ...
It is possible to set an order of initialization of objects at an application launch?
For example:
I have two objects in IB: myObj1, myObj2.
Both of them implement method -initWithCoder:
Properties of objects sets in IB.
myObject2 Initialize is depend from properties of myObj1.
Question: Is exist methods that set order of objects i...
I know how to get information about a current track in iTunes with Cocoa Scripting Bridge thanks to an answer to my following question:
http://stackoverflow.com/questions/3930771/how-to-hook-a-listener-to-itunes
But I couldn't receive a notification in this way when volume changed.
Is there any way to hook a listener for volume?
Than...
How do I set the color of an NSButtonCell's label (title) text, that is the column cell for a table view? In my case, it is an checkbox button cell. (Is it possible using IB?)
...
I have a weird problem in my Objective-C code. I have a View Controller where I call my own loadData method in "viewWillAppear". This works cool until the view becomes visible the third time.
Than the app crashes without any exceptions or other hints when I call
NSArray *storeListArray = [managedObjectContext executeFetchRequest:fetchR...
I have some strange problems with crash reports from 10.5.
Thread 11 Crashed:
0 libxml2.2.dylib 0x93753ec0 xmlClearParserCtxt + 1776
1 libxml2.2.dylib 0x9372f724 xmlParseCharData + 308
2 libxml2.2.dylib 0x93735034 xmlParseChunk + 3624
3 com.apple.Foundation 0x920c57c0 -[...
Hello! I'm writing a document-based app. The main document view is a custom view (NSView subclass). This resides in a Scroll View and the accompanying ClipView, created through IB.
Scrolling works. The user can move objects around on the main view, and when they go off the edges the custom view adjusts it's frame-size and autoscrolls to...
I wrote a very simple to-do-list program(it only has 3 methods). Then I did a Build&Analyze to make sure everything checked out. When I used the Leaks performance tool it told me I had a leak. I couldn't figure out where the leak was coming from so i commented out ALL of my code and still had a leak. So for a test I made a NEW cocoa proj...
Is it possible to access the super class method of an objects super class (or grandfather)?
For instance:
GrandFatherObject : NSObject
SuperObject : GrandFatherObject
SelfObject : SuperObject
From SelfObject:
- (void)overriddenMethod
{
// For Self
someCode();
// For Parent
[super overriddenMethod];
// For GrandParent
?...
Hello Everyone,
I am trying to build a stretchable image in interface builder. Is this even possible? I have searched the web and cannot come up with a proper solution. I'd appreciate any answers.
...
Hi, i have 2 class:
main.m
second.m.
If i have in main.m
- (void)ok
{
NSString *myString = @"OK!";
return myString;
}
How to call myString or "-(void) ok" function from second.m?
Thanks.
...
Hi,
I am building a simple game for 2-4 players in Cocoa. This is my first Cocoa app, so not being familiar with the libraries, I am probably doing a lot of weird things. If you see anything that could be done better, just say so.
The first step requires user to choose number of players from NSPopUp and that data is pulled into an int....
I need a way to get complete hard drive info on OS X, meaning all hard drive model names, SATA/ATA controllers, volumes, disk identifiers, etc. I checked out diskutil, but it doesn't contain SATA controller info, system_profiler has all the information I need but its XML output is not necessarily organized as well as I'd like. Is there a...
Hello.
If there a way to set the "registration color" (all components 100%) in the CGPDFContext? Context deals with this color in source and target documents (I can open a PDF, re-save it and registration color is preserved), but I can't find a way to draw a line or fill a rect with this color.
I have played a lot with NSColor and color...