I find a interest thing: when I used a Browse button to choose a file , if the file have exist
, the NSAlert will cause a alter panel automatic, but I want to make this by my self , how to disable the NSAlert's alter panel automatic? Thanks a lot!
...
Hi all,
I am developing an application in cocoa which needs to read the iTunes XML file.I successfully parsed the xml file but i am facing a critical problem in reading files with special character . In iTunes xml file a file name is written as
"123-123 Daddy Cool Daddy Coool - www.123musiq.com - %C2%AE Riya collections %C2%AE.mp3"
...
I have some apps in mind to control things in my Mac from the iPhone. Probably the simplest thing to do would be to make the iPhone simulate a keyboard and then handle key events on the mac.
What do you think it's the best way to communicate iphone with the mac? Can I use GameKit for that? HTTP?
...
OK, I'm feeling really REALLY stupid for asking this question, but I've managed to stump myself so hard that I doubt I have the proper detachment to figure out the answer for myself any more. My apologies in advance...
I have been playing around with bindings for a while now and LOVE them. That and the KVO/KVC conventions built into O...
I found some private (undocumented) APIs but Apple does not allow apps to use private frameworks. So does anyone know how to do this using Apple official packages?
like: when youtube app prompts you to the push notification: "Select a Wi-fi network"
Thanks in advance.
...
Hi! I'm trying to implement a mini toolbar under a NSTableView like I see in a lot of OS X applications, but have no ideia about which widgets to use to get the final result.
As an example, take a look at the following screenshot from Mail.app:
What is the best way to implement buttons like that? (add, config, remove, etc)
...
I have an NSSegmentedControl on my UI with 4 buttons. The control is connected to a method that will call different methods depending on which segment is clicked:
- (IBAction)performActionFromClick:(id)sender {
NSInteger selectedSegment = [sender selectedSegment];
NSInteger clickedSegmentTag = [[sender cell] tagForSegment:selec...
How can I upload/download data from a server in Cocoa Touch. Here's what I have so far...
-(void)uploadSchedule:(id)sender
{
NSData *content = [NSData dataWithContentsOfFile:self.dataFilePath];
NSString *stuff = [[NSString alloc] initWithData:content encoding:NSASCIIStringEncoding];
NSURL *url = [NSURL URLWithString:@"http://thetis....
Hi ,
I am developing an application in cocoa. Now I am facing a critical issue. I can't hide controls NSButton in NSView. I used the following code
[btn setHidden:YES]
but this "btn" control is not becoming hidden. I used the following code to check whether the button is hidden
[btn isHidden]
but this return YES. Also I can't sen...
I would like to create a custom NSView that takes a layered approach to painting. I imagine the majority of the layers would be the same width and height as the backing view.
Is it appropriate to use the Core Animation classes like CALayer for this task, even though I don't expect to need much animation? Is there a more appropriate appr...
I have created the following method in cocoa:
-(NSArray *)latestData
{
NSURL *requestingURL = [NSURL URLWithString:@"someRestfulURL"];
NSMutableURLRequest *theRequest =[NSMutableURLRequest requestWithURL:requestingURL];
[theRequest setHTTPMethod:@"GET"];
NSURLConnection *theConnection = [NSURLConnection connectionWithR...
Is it wise to create views in Cocoa that have dimensions around 15000 pixels? (of course only small part of this view will be visible at a time in a NSScrollView)
Interface Builder has limit of 10000 pixels in size. Is this an artificial limitation or is there a good reason behind it?
Should I just create huge view and let NSScrollView...
What is the Java equivalent of Cocoa delegates?
(I understand that I can have an interface passed to a class, and have that class call the appropriate methods, but I'm wondering if there is any other way to achieve something closer to Cocoa/Objective-C's informal protocols)
...
I've successfully created an NSCollectionView and added a label to the view prototype in IB, bound to a property of my represented object. I now want to programatically create an NSButton and NSTextField with the NSTextField bound to a property of my represented object. When the button is clicked I want to show and hide the NSTextField...
NSURLResponse *response =[[NSURLResponse alloc] initWithURL:requestingURL
MIMEType:@"text/xml"
expectedContentLength:-1
textEncodingName:nil];
webData = [NSURLConnection sendSynchronousRequest:theRequest
...
I am getting the below errors in Xcode, I know I needed to declare filteredChildren so I tried adding the line NSArray *filteredChildren to the header file but it only made things worse. What code do I need to add to the header to delcare filteredChildren?
...
I am writing a custom NSView subclass. I have several instances of this class in my window, most of which are rotated by calling NSView's setFrameRotation method. I also need to change the cursor when over a rectangular region of this view.
The documentation for NSView's addCursorRect method contains the following oblique warning:
C...
Hi Guys
I have been trying this for past few days but couldnt figure it out.
I have an application which has a NSOutlineView and a NSTableView. Outlineview takes input a path and displays them in the form of a tree structure its sub contents. So when ever a user clicks on a particular folder in the outine view, the contents of the fold...
Hi Everyone:
I am creating a fullscreen app and am wondering if there is some way to make NSAlert go above the CGDisplayCapture that I created. Right now, the NSAlert is displaying behind the display capture. My main window is displaying just fine (after adjusting it with setLevel:) but NSAlert doesn't seem to be working as well. I a...
I'm working on my first major Cocoa app for an undergraduate research project.
The application is document-based and uses Core Data. One of the entities is an abstract entity, Page. Page is parent of several types of pages: ie PageWithHeaderAndFooter, PageWithTwoColumns, BasicPage etc. Page has attributes, such as title and author, that...