Hey! I have my Mac application set up to launch on myApp:// protocol is called in a browser, like Safari, but I cannot seem to be able to do an action when the application is called by that protocol. The delegate method would have to be something like:
- (void)applicationDidBecomeActiveByURL:(NSURL *)protocol;
I don't know this beca...
I would like to use the libical library in my project, but I have never used an external library before. I have downloaded the libical files, but I am pretty much stuck there. I do not how how, or even if, I need to build/extract them and then how to get them into Xcode. Any help would be greatly appreciated. Thank you.
...
Hi All,
I draw a histogram chart using NSView.To display the values of x and y axis i used NSTextStorage.
When i tried to display the values it is used display the values inside the rect that is in the histogram chart but i need to display it out side.
I tried to change the position of x and yaxis from (0,0) to (15,15) then it was abl...
I have a Core Data app that works to add or remove one of a Client's many Appointments with buttons bound in IB to my appointments ArrayController. The appointments content is derived from whichever Client is selected in a feed list.
I wish to use a SegmentedControl, and as far as I could tell, this requires I programmatically add and r...
I try to plot a Bar Chart with Core-Plot with an Array (content are NSIntegers) given one view before.
After transfering the Array in an NSInteger, i must convert it into a NSDecimalNumber, and in this process, my NSInteger (for example 45) becomes "60900224"...
Here's the code extract:
-(NSNumber *)numberForPlot:(CPPlot *)plot field:...
Hi,
i want to hide the bar of the UIPageControl, because i want to implement a pagination with swipe gesture function so I don't need to display the dot bar. If I set hidden=YES there will remain a black block with size of the UIPageControl. Is there a way to hide the UIPageControl Bar completely?
Thanks for your answers.
...
Using the Settings app in the iPhone simulator to switch languages is a PITA way of testing localization tweaks. I'm trying to figure out a way to switch localizations (en/fr/es/etc) on the fly in my app with a debug setting without restarting the app.
NSBundle provides ways of requesting localized resources from an arbitrary localizati...
So I have an application that currently upload images to a web service using a multipart form and I do this pretty simply using an NSMutableRequest and NSURLConnection. The problem I seem to be coming into though is I want to be able to upload a given file without loading it into the program as an NSData object, but simply from the file...
I'm wondering if there is a diff API in Cocoa, I've attempted to google it but its not bring back any results that are useful.
If there isn't an API for this would it be better to call diff from /usr/bin/ or to write my own diff.
All I need it for is text-files with a possibility of branching out into binaries and folders later.
Thank...
I want to lay out several rows of NSViews. Each row will have start with say 5 NSViews with possibility to arbitrarily add or remove views between any of the starting 5, at beginning, or at the end.
1) How can I have these lay themselves out without me manually tracking the size of each and calculating position and placing each one? H...
Hey guys,
I'm experiencing an odd problem with AVAudioPlayer class.
Everytime I try to access one of it's properties they are null.
// Get the file path to the song to play.
NSString *filePath = [[[NSBundle mainBundle] pathForResource:pSound.fileName
ofType:pSound.fileType] retain];
// Convert the file path to a URL....
I want to display a UIAlert to indicate to my users that something went wrong (maybe no Internet). I just need an OK button.
Thanks for the help :)
...
I would like to provide spreadsheet capability in my Cocoa application. From what I've heard, OpenOffice does allow some level of embedding, but I'll be darned if I can find that information in their official SDK documentation. Can anyone here point me in the right direction?
...
To, for example, access variables in a NSDictionary Cocoa frameworks often define keys, such as UIKeyboardBoundsUserInfoKey. How can I check if a key is defined at runtime? I found examples on how to check for classes and functions, but not for constants.
...
I'm trying to make a simple HTTP sniffer (like HTTPFox) development testing purpose.
HTTPFox is good enough, but I should automate some kind of test. (No detail yet)
But I have no idea how to do this.
What kind of API or libs do I should use to do this on Mac?
Cocoa will be great but any lower level ways are welcome.
...
I would like to shrink my UIView to the top left corner. I am currently using a scale transform to achieve this, but the view is shrunk to the center. I have tried to change the layer's anchorpoint, but this results in the entire view changing position on screen . How should a transform be set up to achieve a shrink to the top left corne...
Hi folks,
I want to create a sidebar in one of my mac applications. Basically it will look much like the Things sidebar.
Here is the picture that I basically want to recreate - http://i48.tinypic.com/c25ix.png
I can't figure out how to show the "sections" (collect, focus and active projects) and how to have certain items always show u...
Hi there,
I'm just starting out on my first 'real' cocoa app. Note that this is Mac, not iPhone.
This function is called when my async download of onemanga finishes, and is intended to parse an NSArray list of manga from it. I get a NSArray from nodesForXPath, and retain it to make sure it's mine. (Also tried retaining it twice, heh). ...
i am trying to open a url
(http://c22.smaato.net/oapi/lp.jsp;jsessionid=E253E547A55290CA553F493659433DBF.c22)
on a button through the following code
NSString *strs=[[NSString alloc]initWithFormat:@"%@",[linkArry objectAtIndex:0]];
NSURL *urls = [NSURL URLWithString:strs];
[[UIApplication sharedApplication] openURL:urls];...
Hello everyone
I'm new to Mac programming but generally liking it. I have the following problem:
I have two core data entities linked through a one-to-many with their respective arraycontrollers (Stock Controller and Price History Controller, where the latter controller is bound to the Stock Controller, with Controller Key = selection ...