After I've upgraded to Snow Leopard and Xcode 3.2, everything was screwed up. It took a while for me to figure out the whole evil was that my old Xcode installation was not really "updated", but replaced. So just everything was gone. All SDKs, Settings, everything.
So Code Sense did not work because of no SDK available, and all the othe...
I am constructing an NSmetaDataQuery to find invisible folders (Like ".myInvisibleFolder").
Unfortunately, spotlight does not seem to be locating folders beginning with ".", even when specifically included in the predicate.
What works and doesn't work
Searching for any non-invisable filename works.
Searching content works (kMDItemTex...
I need to create many Cocoa items programatically and most resources I can find focus on creating GUI with the builder. Is there any way to get the objective C code for an interface item created using the interface builder in XCode? Also, I am a little confused about PopUpMenus. Are PopUpMenus contained inside PopUpButtons or are the ...
Is there an overview of file formats which QTKit understands?
...
I'm writing a Cocoa application that displays the contents of an archive file in an NSOutlineView. I provide a custom icon for an NSBrowserCell in the outline column, and it works great, but I ran into a little snag — using [NSImage imageNamed:@"NSFolder"] returns the correct image (a generic folder icon) on 10.6, but on 10.5 it returns ...
Hi guys
my app actually goes to different folders and takes each file into account and reads each file and does a lot of processing on them and marks the folder it has processed as done. but this is not happening as the system is immediately generating files like .DS_store and .localized and .trash. so is there any mechanism to skip pro...
Hi there,
I'm having trouble understanding how to get the following working in interface builder.
I've created a Core Data model class "Person" that has a number of attributes (first name, surname, etc.) and a relationship to other persons (friends).
Conceptually this is very simple. However figuring out how to get this working in IB ...
I'm writing a Cocoa application that displays the contents of an archive file in an NSOutlineView. I provide custom icons for an NSBrowserCell in the outline column, but I haven't been able to get the spacing quite right — the folder icon always appears too close to the disclosure triangle, as shown below. (FWIW, Versions and BetterZip b...
Hi,
I am looking for a way to execute my app (it's a background task) at times, where the machine is "idle". A good incident would be when the screensaver launches. I already read the manual auf launchd and already use a LaunchAgent to lauch my app at certain intervals, but I found nothing that might help me launching my app when the sc...
I want to develop a plugin with Safari. Now I wan to make a demo for add a button into it's MainWindow or menu into it's MenuBar. I have seen to Document WebKitPluginProgTopic and the sample:/Developer/Examples/Webkit/WebKitMoviePlugIn . But they didn't tell the full process of make a plugin with safari and how to add some menu or button...
This question is inevitably subjective, but I will ask anyway.
I'm a PC. I've always been a PC. I have very little Apple expertise, although I'm completely happy in *nix. I've plenty of experience with development, and consider that I am able to pick up new languages and concepts faster than most of my colleagues (although ML/F# still h...
For the purposes of this, I'm going to pretend the original url is http://host/form and the new url is https://host/form. (Note that before I ship this, both URLs are going to be secure. However, the nonsecure-to-secure seems like a convenient redirect to test this on.)
I'm accessing a web API using NSURLConnection that redirects me. Ba...
I have seen this thread on how to execute terminal commands from within a Cocoa app. But I want to actually launch Terminal.app to a specified directory.
I know that the following does not work:
[[NSWorkspace sharedWorkspace] openFile:folderPath withApplication:@"Terminal"];
Terminal tries to actually open the folder as a file.
Is t...
I have code in my application that response to "Open Document" (odoc) events. In Mac OS X Tiger and Leopard, this code works fine:
- (void) handleOpenDocumentEvent:
(NSAppleEventDescriptor*)event
withReplyEvent:(NSAppleEventDescriptor*)replyEvent
{
NSAppleEventDescriptor const *const dirObj =
[event descriptorForKey...
I'm working on a custom button component. I've been reading through the documentation for NSControl and NSCell, and the programming topics associated with it.
What I can't figure out is how to correctly use mouse events in NSCell's. I see that NSControl subclasses NSView, which implements NSResponder - so implementing mouse events in th...
I'm creating a shareware Cocoa app and I wanted to know what is the best way to put in a "nag screen". Basically before the main window of the app shows, I want to have a window with some text, a register button, and a "Not Yet" button (which is disabled at first). There will be a timer on the Not Yet button so the button title will chan...
I'm having trouble with section 4 of the stanford iphone class on assignment 1b.
I am having trouble understanding how I will build the array and what
the assignment expects.
Should the array be a "global" variable? Where should I define that?
Will each of the other subfunctions add their variables to the array?
Is the PrintIntrospect...
I'm slightly confused when to use CALayer on the iPhone or Mac and when not to use it? CoreAnimation works just fine on my UIView based objects without having to use CALayer. When is the appropriate time to dig into this class?
...
I have a BSD socket created with following code (it's in external library that I cannot change):
fcntl(sock, F_SETFL, O_NONBLOCK);
connect(sock, (struct sockaddr*) &sin, sizeof(sin))
What I can do to get a notification from Cocoa that connection is established? In regular world I would make select(3) and test for writability but this ...
Hey guys,
I want to know if I can slowly increase the alpha MainWindow when I open the app and when I close the app. I know it may involve timers, and things like that, but I never dealt with this kind of thing before. I need your help guys...!
Kevin
...