Basically, I want to figure out if it's the next day. So, I'm storing the current date (e.g. Jan 2) constantly in a plist. But the next time the user opens the application, if the date has changed (e.g. Jan 3), I want to do something. Note that a simple ascending order check wouldn't work because I don't want to know if one date is later...
Hi,
I'm new here at stackoverflow :) But I think, this is the right place to ask my question.
I'm a new developer with Cocoa and Objective-c & I'm trying to write my first App for Mac: a ToDo App.
At this moment, i can save ToDo's and delete them, but now, I want to add some features like CreationDate, some Tags (in mutablearray), and i...
I am just about finished with my app and beta testing found a bug in the stopwatch portion...
The stopwatch uses an nstimer to do the counting and has a table for storing laps, but when the lap table is scrolled the watch stops or pauses and does not make up for the lost time.
This was stalling was eliminated by using:
startingTime = [...
hi experts, how to get xcode variables result from one view controller to another view controller,
actually in one view controller i called web services to get userID which is declare as NSString, and in another view controller i want to display the userID which is retrieve from previous view controller, so how this can be done
thanks
...
I have a subclass of NSObject that implements an -(id)initWithRootElement:(MyElement *)e method. NSXMLDocument has an identical method that takes an NSXMLElement. When I compile, I get the following warning:
warning: incompatible Objective-C types 'struct MyElement *', expected 'struct NSXMLElement *' when passing argument 1 of 'initW...
After save a file I want to open the folder of saved file. How do I do that? Thank you very much!
...
I need to get the URLs of all files dragged/dropped into my application from Finder.
I have a Cocoa app running on 10.6 which does this by using the new 10.6 NSPasteboard APIs which handle multiple items on the pasteboard. I'm trying to backport this app to 10.5. How do I handle this on 10.5?
If I do something like below, I only get ...
I know that if you change the Core Data model and you have run the app before on the old model that you will get Persistent Store error. How would you handle changes to the Core Data model so you do not get this error? Is there a way to upgrade an old model so that the already saved data is not lost?
...
I'm successfully using ImageCaptureCore to scan and save images. However, if the scanner hasn't been calibrated by some other app, the resulting image quality is very poor. I've found that the ImageCapture libraries have no methods to automagically create and save calibration data for the scanner.
How should scanner calibration be h...
Hi,
I have a mutable array and i would like to arrange it in a nested order upon some criteria.
To achieve this I'd like to move certain elements to mutable arrays of another elements, removing them from the main mutable array, but without releasing them. Actually the question is about removing elements from array without releasing them...
Background
I'm writing an part of my app that has no UI. It sits in the background watching what you do and timing your work.
There should be no overlapping times, and there should be no breaks in the time data. If there are either of these things, the app has a bug somewhere and I need to be notified.
What I Want
A class called JG...
Hey there,
I'm new at using CoreData and I'm trying to understand how to perform a query on a table. I can use a fetch request to pull all of the records from a table, but I'm looking for a subset. Is there an easy way to do this?
Thanks,
Howie
...
Hi people. I need to add custom element to context menu for all running application. It is posible?
Something like:
I select text and in context menu i have not only application items, but additional items of my application and this items must will be connected to my app. It must work in all applications.
...
Is it possible to manipulate CSS data before it is parsed in WebKit?
I've tried using the delegate method
- (NSURLRequest *)webView:(WebView *)sender
resource:(id)identifier
willSendRequest:(NSURLRequest *)request
redirectResponse:(NSURLResponse *)redirectResponse
fromDataSource:(WebDataS...
I have a relatively simple goal: I want to create a Cocoa application which doesn't have much functionality itself, but is extendable through plugins. In addition I want to work on a few plugins to supply users with real functionality (and working examples).
As I am planning to make the application and each plugin separate open-source p...
My iPhone application was rejected solely for using the (very safe, it seems) private method +setAllowsAnyHTTPSCertificate:forHost: for NSURLRequest. Is there a non-private API to emulate this functionality?
...
I've created an NSScrollView which itself contains a NSClippedView as content view (this is all default, created by IB). Inside the contents view there is the (default) document view.
This NSScrollView has horizontal scroller disabled and vertical enabled and, most importantly auto hide scrollers enabled.
When I add new views (via code...
For my iPhone application, Apple wants to know if my password encryption (md5) is greater then 64-bit symmetric or greater then 1024-bit symmetric. I have not been able to find it online, so I am wondering if anyone knows the answer. In addition, is this considered an appropriate encryption technology for passwords, or should I use som...
I am developing a plug-in with Safari. I followed the adblocker sourcecode to swizzle the method:
-(id)initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:DOMElement:
of class WebBaseNetscapePluginView but I found that didn't respond in Safari4. Why?
...
I have an NSPopUpButton inside a trackingArea. Now when I open the PopUp and select an item, the mouseExited: method gets called. Even if my mouse is still inside the trackingArea. I assume that that is because the NSMenu is a view itself and when I click the mouse it is not in the view with the tracking rect anymore.
How can i workarou...