Hi,
I have an application that when pressing a button it should show a modal window. I have some questions about it but I'm going to narrow it to what it's giving me a headache.
I want to add that I'm already doing something alike that when applied to this particularly case won't work. What I already do is to show modally a NSOpenPan...
How can I calculate the progress of an AVAssetWriter process? So if I have something like:
[assetWriterInput requestMediaDataWhenReadyOnQueue:queue usingBlock:^{
while (1){
if ([assetWriterInput isReadyForMoreMediaData]) {
CMSampleBufferRef sampleBuffer = [audioMixOutput copyNextSampleBuffer];
if (sampleBuffer) {
...
Hello! I want to create a functionality in a program to link two views (inside another view) using links like when CTRL+Dragging in Interface Builder.
In the implementation I have currently, there are 2 (or more) subclassed NSControllers (called Nodes) and inside those nodes there are 1 (or more) subclassed NSControllers (called Outlets...
My application allows the use of the international keyboard for entering text. The NSEvent's KeyDown event is not being triggered when the user is typing input from the international keyboard, although the same event is triggered if the keyboard is American.
Your feedback will be greatly appreicated.
Thanks
...
Is there any way to be notified / have your Cocoa application listen for changes in the network connection (disconnect, connect, etc.)? How does something like HardwareGrowler do it?
...
Sorry if this is an annoying question, but I just want to know if it is possible to have an iPad view that is functioning, then load a smaller view on top of that with different content. And then be able to use both at the same time.
I have been trying to look this up, but I don't know what terminology to use. Thanks to anyone who c...
Hey there,
is there a simple way to create a command-line tool in Objective C?
I'd rather not use XCode, because XCode has targets and executables, and just complicated stuff.
I'd like to go classic way, just create a Makefile, compile something get an executable, play with it.
--
If this is not possible, is there any way to run th...
Hi,
How to clear a text written on a NSRect? If I write anything on the previously written rect, it just overlaps! Thanks in advance.
...
Hello everyone.
My question is quiet simple (I think). I have a class that implements a simple chronometer (using some integers and NSTimer). I would like to close my app (so enter in background mode) but I would like my chronometer still continue to count. How can I manage that ?
Thanks a lot !
...
I am making a download and installing application that must run multiple times at the same time. However, is it smart to do so? My application uses the /tmp directory to save temporary downloads. Each instance of the application needs its own dock icon, that's the reason I use multiple instances.
Is it dangerous to have multiple instanc...
Hi guys,
Fist post for a french developer!
I'm trying to create a simple synchronization using rsync and objective-c.
So I used NSTask like that :
NSTask *task = [[NSTask alloc] init];
[task setLaunchPath:@"/usr/bin/rsync"];
NSArray* args = [NSArray arrayWithObjects:@"-av", @"/Users/BiB1/Documents/test/", @"[email protected]:~/te...
Hello all,
I have a project that needs to draw text in a view with a gradient fill in a custom subclass of NSView, like this example below.
http://cl.ly/2znx
I'm wondering how I can achieve this, as I'm pretty new to Cocoa drawing.
...
Hi experts,
thanks for going through my question. But I have something like this...
I have an application that has a NSTextfield named userName, a NSTextfield named helloName, and a NSButton that starts the whole process. All it does is that the user types in his/her name in the Name textfield.
when the user presses confirm, the Hello...
I have a table being generated from an array of NSManagedObjects.
This works fine until I try to add an extra cell at the top of the table.
Here is what I'm trying at the moment:
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
int menuLength = [mainMenu count] + 1;
return menuLength;
}
...
Hi,
I'm working on an NSWindow subclass and I'm running into some strange behavior that makes me question some of my assumptions about how windows work on Mac OS X.
What precisely happens to NSWindow instances when [[NSApplication sharedApplication] hide: self] is called?
All windows that do not return NO to -(BOOL)canHide disappear f...
Is there anything other than *ex for nsexception?
The developer library doesn't even mention using *ex. I'm new to obj c, with php, I would just go to php.net to see examples on how to use classes . Is there a resource like that for obj c? The apple class reference is great, but if you haven't really done any coding in obj c it's ...
Hello,
I am trying to get the boolean value that's returned by -(BOOL)backupDropletUpdateAvailable through NSThread.
To do this, I've tried the following:
` BOOL isAvailable = NO;
[NSThread detachNewThreadSelector:@selector(backupDropletUpdateAvailable) toTarget:isAvailable withObject:nil];
if (isAvailable == YES)
{//etc
Which r...
UITableView setting contentOffset in UIViewController viewDidLoad doesn't take effect...
- (void)viewDidLoad
{
[super viewDidLoad];
// Uncomment the following line to display an Edit button in the navigation bar for this view controller.
// self.navigationItem.rightBarButtonItem = self.editButtonItem;
self.tableView.con...
Compare...
NSInvocation* invocation = [NSInvocation invocationWithMethodSignature:[performer methodSignatureForSelector:@selector(playFile:)]];
[invocation setSelector:@selector(playFile:)];
[invocation setTarget:performer];
NSString* string = [NSString stringWithString:@"reverse.wav"];
[invocation setArgument:&string atIndex:2];
...w...
Is there a way to get list of open or visible NSWindow from mac desktop?
...