Re: waiting for an NSThread

2008-10-12 Thread Omar Qazi
Yes. NSThread *newThread = [self startTheThread]; [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(threadExited:) name:NSThreadWillExitNotification object:newThread]; - (void)threadExited:(NSNotification *)noti { NSLog(@Thread exited); } On Oct 12, 2008,

Re: Can we discuss iPhone development yet?

2008-10-01 Thread Omar Qazi
Not immediately. (See: Please Hold off on iPhone Discussion) Sent from my iPhone (which I can talk about now) Omar Qazi Hello Galaxy On Oct 1, 2008, at 3:54 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I just got notified that Apple has dropped the NDA: http://www.iphoneatlas.com/2008

Re: CoreData fetched property: one-to-one-to-many relationship

2008-08-03 Thread Omar Qazi
might want to just add a custom method to the class of your Core Data model to execute the fetch request and get the job done. Omar Qazi Hello, Galaxy! 1.310.294.1593 On Aug 3, 2008, at 9:49 AM, James Gregurich wrote: greetings! I'm trying to figure out how to dynamically (in code) set up

Re: Launch Path Not Accessible

2008-08-02 Thread Omar Qazi
script you would use /bin/sh and the script would be the first argument (and so on and so fourth). Omar Qazi Hello, Galaxy 1.310.294.1593 On Aug 2, 2008, at 2:19 PM, Steve Cronin [EMAIL PROTECTED] wrote: Andrew: Thanks for the slap on the head! So I chmod'ed the file and no longer get

Re: Need help with predicate format

2008-07-27 Thread Omar Qazi
to an object in the array, or if it is equal to the object, but it's better than nothing, I guess. Omar Qazi Hello, Galaxy! 1.310.294.1593 smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: NSTextView + other NSView in NSScrollView?

2008-07-27 Thread Omar Qazi
Putting two views inside a scroll view seems like a weird way to go about this. What I would do is create a custom NSView subclass that draws information at the top and has an NSTextView as a subview drawn underneath. Omar Qazi Hello, Galaxy! 1.310.294.1593 On Jul 27, 2008, at 8:31 PM

Re: NSSpeechSynthesizer delegate method not called in OCUint

2008-07-26 Thread Omar Qazi
, ostensibly (I don't know what the controller's stopIt method does, but I can imagine), the speech synthesizer never started speaking any text. If you stop the Speech Synthesizer before it starts speaking any text, it's not going to call that delegate method. Omar Qazi Hello, Galaxy! 1.310.294.1593

Re: How to locate coding examples for specified commands [Newbie]

2008-07-26 Thread Omar Qazi
something else?) Methods. It's often so much easier to understand how it works by seeing an example. Of course. Good luck getting started. Omar Qazi Hello, Galaxy! 1.310.294.1593 smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev

Re: mdbackup binary plist files

2008-07-17 Thread Omar Qazi
On Jul 16, 2008, at 8:15 PM, Ryan Chapman wrote: Hopefully there is someone here who knows something about binary plist files. When an iPhone's firmware is upgraded in iTunes, a framework called MobileSync creates a backup of the iPhone's data files. The backup is stored in .mdbackup

Re: notification when app is moved

2008-07-17 Thread Omar Qazi
On Jul 17, 2008, at 3:50 AM, Mitchell Livingston wrote: How can I call it again if I don't know it moved? Waiting until it fails is a bit too late in the process. Sure, chances are the app won't move, but why should it ever fail? Storing it in the library folder is

Re: How to programmatically open an NSComboBox's list?

2008-07-17 Thread Omar Qazi
fake the mouse even that would normally pop it open. Omar Qazi Hello, Galaxy! 1.310.294.1593 smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: notification when app is moved

2008-07-16 Thread Omar Qazi
]initWithPath:pathToApp]; NSString *resourcePath = [appBundle pathForResource:@WhateverResource ofType:@Whatever Type]; Omar Qazi Hello, Galaxy! 1.310.294.1593 smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev

Re: notification when app is moved

2008-07-16 Thread Omar Qazi
On Jul 16, 2008, at 6:08 PM, Mitchell Livingston wrote: I have code that must know where a folder inside the Resources folder of the application is. This location must be updated whenever the app is moved to another location. Is there some sort of callback I can register to receive for

Re: notification when app is moved

2008-07-16 Thread Omar Qazi
find the file. You might be worrying about this too much. How often will a user move your application? If these files don't change you might even consider copying them to the user's library folder the first time your app is run. Omar Qazi Hello, Galaxy! 1.310.294.1593 smime.p7s

Re: Efficiently receiving data from an NSTask

2008-07-07 Thread Omar Qazi
]; } This is what I'm using in one of my Cocoa apps. I don't know if it's faster, but I would assume so, since there is no loop. Also, If i've interpreted the documentation correctly, the method is run in the main thread so you don't have to worry about anything being thread safe. Omar Qazi Hello

Re: Checking availability of host/website

2008-06-28 Thread Omar Qazi
for that. You probably just want to open an NSURLConnection and see if it doesn't accept the connection within a second or whatever. Omar Qazi Hello, Galaxy! 1.310.294.1593 smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing

RE: Building a Setup Assistant

2008-06-28 Thread Omar Qazi
NSViewController will hanfle view swapping stylishly. The oreily book is really outdated. Read Hillegas' instead. I'd link you but I am writing this on my phone. -Original Message- From: Christopher Keath [EMAIL PROTECTED] Sent: Saturday, June 28, 2008 2:14 PM To:

RE: Methods that return autoreleased objects?

2008-06-28 Thread Omar Qazi
Oops. Sorry for the double reply. Stupid phone doesn't have a threaded view. -Original Message- From: Shawn Erickson [EMAIL PROTECTED] Sent: Saturday, June 28, 2008 5:32 PM To: john muchow [EMAIL PROTECTED] Cc: cocoa-dev@lists.apple.com cocoa-dev@lists.apple.com Subject: Re: Methods that

Re: [Moderator] List Guidelines - Must Read

2008-06-27 Thread Omar Qazi
isn't that far off anymore. Until then perhaps you could emphasize this some more, like putting the little NDA boiler plate at the beginning of the welcome email. Or maybe even making it the subject. Omar Qazi Hello, Galaxy! 1.310.294.1593 smime.p7s Description: S/MIME cryptographic

Re: What does 'thread safe' mean?

2008-06-27 Thread Omar Qazi
are presumably only using a single thread, you really don't need to worry about making sure your code is thread safe. Omar Qazi Hello, Galaxy! 1.310.294.1593 smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev

Re: Losing some event

2008-06-27 Thread Omar Qazi
know what that means, you should probably read this: http://developer.apple.com/documentation/Cocoa/Conceptual/EventOverview/Introduction/chapter_1_section_1.html Omar Qazi Hello, Galaxy! 1.310.294.1593 smime.p7s Description: S/MIME cryptographic signature

Re: Losing some event

2008-06-27 Thread Omar Qazi
On Jun 27, 2008, at 10:37 AM, Laurent Cerveau wrote: - I also make sure I make the view ist the firstResponder of the window. Sorry, I missed the last line of your email. Omar Qazi Hello, Galaxy! 1.310.294.1593 smime.p7s Description: S/MIME cryptographic signature

Re: Extent of NDA concerning iPhone

2008-06-27 Thread Omar Qazi
On Jun 27, 2008, at 11:27 AM, John Murphy wrote: I was planning to put some video tutorials up on my site that included some stuff on the iPhone. Should I hold off? This is not really the right place for a question like that. That said, yes. Omar Qazi Hello, Galaxy! 1.310.294.1593

Re: description and proxy objects

2008-06-26 Thread Omar Qazi
on? Instead of the print out of the contents of the dictionary I am now getting the description of the proxy object. _NSControllerObjectProxy: 0x196110 Do this: NSDictionary *accountSettings = [[accountsController selectedObjects]objectAtIndex:0]; Omar Qazi Hello, Galaxy! 1.310.294.1593

Re: NSString help!

2008-06-25 Thread Omar Qazi
= oneTextField.stringValue; Omar Qazi Hello, Galaxy! 1.310.294.1593 smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Application Main window not appearing on application launch

2008-06-21 Thread Omar Qazi
this and how do I avoid it. Select the window in interface builder and make sure the Show window at launch checkbox is checked. Omar Qazi Hello, Galaxy! 1.310.294.1593 smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing

Re: Application Main window not appearing on application launch

2008-06-21 Thread Omar Qazi
On Jun 21, 2008, at 2:05 PM, Omar Qazi wrote: On Jun 21, 2008, at 12:18 PM, Clayton Leitch wrote: Core data document application: I edited the MyDocument.nib file to add a few fields to one view and now when I start the application, the main window does not appear. Also

Re: Quartz Composer file in IB

2008-06-20 Thread Omar Qazi
EXCEPTION___ Any ideas? -Dan Uff I think that there's a framework you have to link against to get the Quartz Compositions to show up. Omar Qazi Hello, Galaxy! 1.310.294.1593 smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev

Time Machine Helpers

2008-06-19 Thread Omar Qazi
into Time Machine and only available in the iApps? Is this possible at all, because apple doesn't seem to have any documentation on it, and it seems like a useful thing to have in third party apps. Omar Qazi Hello, Galaxy! 1.310.294.1593 smime.p7s Description: S/MIME cryptographic signature

Re: Add item to NSSavePanel sidebar

2008-06-19 Thread Omar Qazi
finder after you make the change using something like killall finder. Omar Qazi Hello, Galaxy! 1.310.294.1593 smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Add item to NSSavePanel sidebar

2008-06-19 Thread Omar Qazi
On Jun 19, 2008, at 6:36 PM, Jens Alfke wrote: (b) there's no way to get NSSavePanel in your own process to notice the file's changed, since you don't want to kill yourself... Good point. Omar Qazi Hello, Galaxy! 1.310.294.1593 smime.p7s Description: S/MIME cryptographic signature

Re: iMovie HD like splash screen

2008-06-17 Thread Omar Qazi
[NSApp terminate:self] Omar Qazi Hello, Galaxy! 1.310.294.1593 On Jun 17, 2008, at 5:50 AM, Angelo Chen wrote: Hi, I'd like to implement a iMovie HD like splash screen, here are some tips needed: 1) when the 'quit' button is clicked, how to quit the entire application? smime.p7s

Re: Calendar Store for iCal Server calendar...

2008-06-17 Thread Omar Qazi
should be reflected on the server automatically. Omar Qazi Hello, Galaxy! 1.310.294.1593 smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Displaying live NSSlider value

2008-06-17 Thread Omar Qazi
the user preferences / execute the action in the accessor method? Omar Qazi Hello, Galaxy! 1.310.294.1593 smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

File System Notifications

2008-06-17 Thread Omar Qazi
to get a notification when another application opens a file? If not is there any way I can achieve this? Omar Qazi Hello, Galaxy! 1.310.294.1593 smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Getting all subclasses

2008-06-17 Thread Omar Qazi
. The runtime sends initialize to each class in a program exactly one time just before the class is sent its first message from within the program. So this will only work for each class that is actually used within the application. Omar Qazi Hello, Galaxy! 1.310.294.1593 smime.p7s Description: S

Re: nib and xib

2008-06-16 Thread Omar Qazi
On Jun 16, 2008, at 5:54 PM, William Squires wrote: What's the difference? (assuming 'xib's aren't under NDA here...) A xib is an XML file that is ostensibly the same thing as a NIB file. It opens in interface builder and opens and edits just like a nib would. When you compile your

Re: Newbie interface questions - multiple modal windows

2008-06-16 Thread Omar Qazi
windows, and why they need to be modal. As for your second question, I can't think of any examples of this, because I've never seen an application do this before. Maybe something with sheets? Omar Qazi Hello, Galaxy! 1.310.294.1593 smime.p7s Description: S/MIME cryptographic signature

Re: Initializing font size in UITextField

2008-06-15 Thread Omar Qazi
whichever one you like. On Mac OS X, of course. ;) Omar Qazi Hello, Galaxy! 1.310.294.1593 smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Control USB Power

2008-06-12 Thread Omar Qazi
, Omar Qazi Hello, Galaxy! smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins

Re: Shipping common app frameworks.

2008-05-13 Thread Omar Qazi
and drop install. Omar Qazi Hello, Galaxy! 1.310.294.1593 On May 12, 2008, at 11:53 AM, David Springer wrote: Folks, We need to ship some frameworks that are common to a few of our apps. The question, of course, is where to put these, and how to bundle them with apps so downloads, etc

Re: Anybody using Pantomime or mail-core framework?

2008-05-13 Thread Omar Qazi
assigning a client certificate when they activate or something. Omar Qazi Hello, Galaxy! 1.310.294.1593 On May 12, 2008, at 11:07 PM, Jens Alfke wrote: On 12 May '08, at 10:57 PM, Omar Qazi wrote: I have an app that sends emails, and what I did is have it post the message parameters to my

Re: Save as and Open conditional code samples? tutorials?

2008-05-13 Thread Omar Qazi
John: Check this out: http://developer.apple.com/documentation/Cocoa/Conceptual/Documents/Articles/MultiDocument.html#/ /apple_ref/doc/uid/TP40003382 Hope that helps. The developer documentation is your friend :) Omar Qazi Hello, Galaxy! 1.310.294.1593 On May 13, 2008, at 8:56 PM, John