If a user has 2 or more quicklook plugins that handle the same kMDItemContentType what happens? Which plugin gets priority to do that actual work? Can that be set programmatically?
...
Hi,
I have a QTCaptureSession with one QTCaptureConnection using h.264 for compression.
I want to stream the video over UDP with very low latency, but I'm having trouble understanding the QTKit framework.
As far as I can see I have two choices for output:
1) Subclass QTCaptureOutput and send the data that would go to the file out on a...
I have a view with 2 textfields in it. The first one should get URL's, the second words to be searched on google. The problem is that the following method
-(BOOL)textFieldShouldReturn:(UITextField *)textField;
designs the behavior for both of them. What should I do in order to be able to design two behaviors just as I mentioned above (...
My Cocoa application is a socket server which receives video frame from my iphone, and displays them on the screen as a video.
I am saving every image in an array after i receive them.
Is there a way to convert this array of images to a video file and let the user to save this file to disk?
Thanks
...
I am trying to write an nsdata to a file on my disk, I have the following code and it doesn't work, am i doing anything wrong?
Boolean result = [data writeToFile:@"/Users/aryaxt/Desktop/test2.avi" atomically:YES];
test2.avi doesn't exist, I am assuming that writeToFile would create it for me
...
Hi,
With the following code I'm able to rotate the layer based on the left side.
But how can I rotate it based on the right side?
Thank you,
Jose.
CALayer *layer = [masterTasksLeftSideView layer];
[layer removeAllAnimations];
CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@"transform.rotation.y"];
CATrans...
I have built an data model in Xcode and I have generated a custom managed object class from one of the entities in the model. I am not sure why but I don't think the custom class is building properly.
For example if I just type some random stuff in the middle of a class declaration like:
@class MyOtherClass;
@interface MyClass : NSM...
Anyone have any examples of methods for creating a UI with multiple (one or more) lines (groups) of UI elements? There will be at least two different "groups" of elements (labels, text fields, check boxes, etc), but there will be common columns (headers). The number of rows (lines) of elements is determined at run-time - there will be ...
Using IB, I have dropped an NSView (menuView) inside another.
I have set up my outlet and connected it to menuView.
I thought: " [self.menuView setHidden:NO] " would unhide it but it seems not to be working.
What else do I have to do?
...
How can I, within my Cocoa app, get a notification when the currently running VPN connection disconnects? I'm running Snow Leopard.
...
Hi.
Is there a way to update a label bind to a slider while the slider is draged?
I bind the label to the slider via 'takeFloatValueFrom:' but it's update the value only when i release the mouse from the slider.
Thanks
...
Hello,
I am building a mac application in cocoa and would like to know what is the message flow (method calls) when the user presses command+q. The app uses the document based architecture.
Thanks.
...
Hello,
I am developping a Cocoa application and I have a special need. In my main window, when I mouse down on a certain area, a new window (like a complex tooltip) appears. I want to be able to do:
- mouse down on the main window (mouse button stay pressed)
- user moves the mouse on the "tooltip" window and mouseup on it.
My issue is...
I'm trying to make a view class which exposes bindings. I've got the simple case for bindings worked out: the following code exposes two bindings. As long as I make properties with the same name as the bindings, all works.
+ (void)initialize
{
if (self == [RecipeView class])
{
[self exposeBinding:@"name"];
[self ...
There seem to be lots of answers for cross-platform frameworks for devices (iPhone + Android), and cross-platform frameworks for desktops (Mac + Win + Linux). This is a different question regarding a suitable framework, methodology, template app, tutorial, or just helpful hints, on developing native apps (not just web apps) that are cro...
I want to keep date/times in a CoreData store with no seconds or milliseconds. (I'm doing some processing to round times off, and stray seconds/milliseconds become a monkey wrench.) It's easy enough to drop the seconds:
NSDate *now = [NSDate date];
NSDateComponents *time = [[NSCalendar currentCalendar]
compon...
I am writing a program that creates ICC color formats. These formats specify a data type called s15Fixed16Number which has a sign bit, 15 integer bits and 16 fractional bits. IEEE 754 32-bit floats have a sign bit, 8 exponent bits and 23 fractional bits.
I need to get input from a text box, and convert them into a s15Fixed16Number. Some...
Is there a framework similar to MapKit (i.e. that can display maps with overlays) for the desktop. Apple-supported, Google or third party/open-source.
I know of OpenStreetMaps, and I want to know what the options are.
...
const char *sqlStatement = "select rowid from mytable where name = 'mac'";
Then I am getting correct result. But If I do :-
NSString *str=@"mac";
const char *sqlStatement = "select rowid from mytable where name = str";
I am getting error no such column : str. How to pass variable to sqlstatements?
...
I can't seem to find any discussion about this, but I have this question after I watched session 137 of WWDC about core data optimization.
So, Melissa Turner advise to use <= and < instead of BEGINSWITH, but how do I do that with predicate substitution variables or formatted predicate?
Let's use this example:
@"franc" <= searchName AN...