Retaining a NSURL and retaining its -path

2009-09-12 Thread John Love
the 2nd controller did it work. Basic question: if a parent object is retained, why isn't each sibling component object of that parent retained?? John Love Touch the Future! Teach! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) P

Where to send different messages while RunLoop is running

2009-10-11 Thread John Love
Reference: http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/Multithreading/RunLoopManagement/RunLoopManagement.html#//apple_ref/doc/uid/1057i-CH16-SW29 As noted, Apple's sample code sends a kCheckinMessage back to the main Thread and then monitors the currentRunLoop un

Re: Where to send different messages while RunLoop is running

2009-10-11 Thread John Love
recommendation. = On Oct 11, 09, at 4:00 PM, Alastair Houghton wrote: On 11 Oct 2009, at 20:40, John Love wrote: Reference: http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/Multithreading/RunLoopManagement/RunLoopManagement.html#//apple_ref/doc/uid/1057i-CH16

NSInvocationOperations and background Threads

2009-10-16 Thread John Love
reated before the above selector method starts and is this NSAutoreleasePool released after this method finishes? John Love Touch the Future! Teach! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moder

__CFServiceControllerBeginPBSLoadForLocalizations timed out error

2009-10-17 Thread John Love
with upgrading to 10.6, but I really do not know?? Good grief!! John Love Touch the Future! Teach! ___ 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 coco

Re: NSInvocationOperations and background Threads

2009-10-18 Thread John Love
more since I have successfully called - detachNewThreadSelector, as well as delved into NSMachPorts and NSPortMessages with success. So, I'm just trying to learn a little bit more here. Again, thanks. John === On Oct 17, 09, at 10:20 PM, Ken Thomases wrote: On Oct 16, 2009, a

Re: NSInvocationOperations and background Threads

2009-10-19 Thread John Love
if need-be, and if so, send a Notification back to the main Thread. Anyway, my bad! John = On Oct 18, 09, at 5:31 PM, Ken Thomases wrote: On Oct 18, 2009, at 7:26 AM, John Love wrote: Thanks for your prompt reply, I really appreciate it. You're welcome. I hav

cocoabuilder.com

2009-11-10 Thread John Love
Is http://www.cocoabuilder.com/ dead? John Love Touch the Future! Teach! ___ 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(at

An Array of structs

2009-11-27 Thread John Love
ializer element is not constant. This pertains to the NSString* because if I directly substitute the following, no compile error happens: YearAmt gTest[] = {{@"testy", 10} What fundamental pertaining to C or C++ am I not getting? John Lov

appscript project gives warning with XCODE 3.2.2

2010-04-21 Thread John Love
loper/SDKs/MacOSX10.4u.sdk'. I can hardly remember Tiger sdk's being on my hard drive. Building with 3.2.1 gives no error. John Love Touch the Future! Teach! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post adm

'Build and Analyze' with XCODE 3.2.2

2010-04-24 Thread John Love
ts:offset toDate:fromDate options:0]; [offset release]; return result; By the way, identical gotchas are picked up by B & A for gregorian. John Love John Love Touch the Future! Teach! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.c

Changing cursors in window's bounds

2010-05-28 Thread John Love
ecause I pass this window to it. So, how do I effect cursor tracking just in this window without creating a custom NSView in IB? John Love Touch the Future! Teach! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin reque

raising NSException between Controllers

2010-06-19 Thread John Love
ad: from Controller #1. Maybe?? it is because I am bouncing between separate Controllers and am causing mayhem. Any psychic premonitions would be welcomed. John Love ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin req

closing a sheet from another controller

2010-06-24 Thread John Love
. Thanks in advance, John Love Touch the Future! Teach! ___ 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(at)lists.apple.com Help/Uns

NSTimer access to its -timerFireMethod

2010-07-14 Thread John Love
This is just out of academic curiosity because I can successfully use: [NSThread detachNewThreadSelector: toTarget: withObject:] to do what I want. Nevertheless, I have been trying to do the same thing in the main Thread with NSTimer and something is wrong that I just cannot figure out. So, h

Hide Quicktime logo when using MPMoviePlayerController to play audio

2011-08-09 Thread John Love
r new music or a video, the music initially playing stops and the new AV file starts. If I press the Home button, the music stops playing, so I think I can get along without the Done button being around. Any ideas to cover over the Done button ?? ... b

iOS App Ready to Upload ???

2011-09-19 Thread John Love
Finally, wrapped up my iOS app sand then proceeded to use iTC to upload to App Store for review. Using iTC, I see the status "Waiting for upload". So I start Application Loader and the Loader allows me to select the application. Then, I click "Choose" and my actual app is dimmed in the Finder

Checking for Internet Connection in an iApp

2011-10-16 Thread John Love
ionName:kReachabilityChangedNotification object:internetReachability_]; Triple thanks … John Love Touch the Future! Teach! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the lis

playing a streamed audio file

2011-10-21 Thread John Love
| | controls here | || -- Thanks, John Love Touch the Future! Teach! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Multiple? Call-back methods for AVPlayer

2011-10-30 Thread John Love
l stay with 2. I sure would like to just use [NSNotificationCenter defaultCenter] addObserver: … and combine in it my [mySong addObserver: method. Thanks bunches. John Love Touch the Future! Teach! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) P

I think I'm ready to throw in the towel - I really need help here

2012-01-24 Thread John Love
Yes, my app will be free; however, within reason, I am very willing to pay someone for such efforts. The help I seek comes in 2 varieties: (1) John, use this graphics app, do these 3-or-whatever things on your png graphics and bingo! -- OR -- (2) John, for $___, I will do this magic for you. J

Atta Boys, 4 bags-full

2012-01-26 Thread John Love
aught me about making the project settings independent of a particular directory, in short, not hard-wiring the location. Let's hear a ear-splitting round of applause for these 4 guys … I didn't hear you … oh, come on, you can do better than that! That's better. John Love Touc

iPad 5.0 Simulator problem

2012-02-14 Thread John Love
Simulators iPad 4.3 Simulator These guys run super, but not the iPad 5.0 John Love Touch the Future! Teach! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Editing nib files in XCode 4 and other stuff

2011-04-30 Thread John Love
integrated environment. I don't know how to do that yet .. have downloaded various PDFs, so I've got a lot of reading to do .. something about creating a file first via the File Menu .. I'll get there eventually John Love Touch the Future! Teach! __

2 Quick questions about my iOS App and the Apple Developer program

2011-05-17 Thread John Love
ow if this influences the answer to the final question, but I fully intend to offer whatever iApp(s) I develop for free. Thanks in advance, John Love Touch the Future! Teach! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

iOS programming (who does what to whom?)

2011-05-28 Thread John Love
ument window appeared. Okay, what's the point? This point is a question: where can I find the details of who calls whom after main.m is run .. in the iOS word, what happens inside UIApplicationMain. John Love Touch the Future! Teach! ___ Cocoa-d

Almost! to the end

2010-01-12 Thread John Love
s passed to NSDocument's -readFromURL. Any help out there for this worst-case scenario? Thanks in advance. John Love Touch the Future! Teach! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator com

Re: Almost! to the end

2010-01-14 Thread John Love
I tracked down NSException. Appscript posts a "NSRangeException" Exception which applies in my case. So, a simple @try .. @catch pair around each row does the trick. Thanks again and again .. John Love = On Jan 12, 10, at 10:33 AM, John Love wrote: > Thanks to many, many

Basic info about outlets

2008-05-15 Thread John Love
Window, selecting "documentWindow" as the Outlet. But, just exactly HOW does the actual documentWindow object get passed so that someMethod can look at one of its properties? This question is oriented to "behind the scenes". Thanks in

Re: Basic info about outlets

2008-05-17 Thread John Love
i.e., using this Web Site as a means of replying. Thanks in advance, John Love ___ 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(at)l

NSProgressIndicator and some very basic stuff ...

2008-05-19 Thread John Love
I am having some basic problems getting an indeterminate NSProgressIndicator (INSPI) to spin. Since I have just recently started to learn XCODE and Cocoa, I began with "Learning Cocoa and Objective C". I have also printed out much of Apple's docs, e.g., on the INSPI. I just finished developing a

NSProgressIndicator

2008-05-23 Thread John Love
I have successfully been able to create a small project whose GUI consists of a NSProgressIndicator, or wheel, and a Button, titled "Spin". In the .nib window, the "Controller" is ctrl-dragged to the wheel, specifying an outlet "wheel" and the Button is ctrl-dragged to the Controller, specifying an

NSProgressIndicator -- delete the first message with same title

2008-05-23 Thread John Love
guidance and in the process be able to more completely understand these beasts. Thanks in advance, John Love ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Alert Sheets hard wired in Interface Builder

2008-05-27 Thread John Love
scheme exist in Cocoa/XCODE? Thanks in advance, John Love ___ 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(at)lists.apple.com Help

Re: Alert Sheets hard wired in Interface Builder

2008-05-31 Thread John Love
On Fri, May 30, 2008 at 3:33 PM, John Love <[EMAIL PROTECTED]<[EMAIL PROTECTED]>> wrote: > Here's some code snippets that I'm having problems with .. the code is > sorta working in that an alert *window* appears, but not as a drop-down > sheet as I think the foll

Re: Alert Sheets hard wired in Interface Builder

2008-05-31 Thread John Love
tInfo { if (returnCode == NSAlertDefaultReturn) { // "Good Bye!" NSLog(@"Default Button clicked"); // does not log this entry } [theSheet close]; } John Love ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Alert Sheets hard wired in Interface Builder

2008-06-01 Thread John Love
Button clicked"); } else if (returnCode == NSAlertAlternateReturn) // "Stop and don't save" { NSLog(@"Third Calculate Button clicked"); } [theSheet close]; // have also tried ... [theSheet orderOut:self]; } Someone a long time ago war

Re: Alert Sheets hard wired in Interface Builder

2008-06-03 Thread John Love
Thank you everyone ... I went back to Apple Docs on Sheets and found everything you stated ... I apologize for not being a careful reader. John Love ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

NSWindow does not support utility styleMask 0x10 ???

2008-06-05 Thread John Love
This error appears when a window shows in my document-based app via MyDocument's -windowDidLoadNib method. any clues about this mystery ??? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comme

Re: NSWindow does not support utility styleMask 0x10 ???

2008-06-06 Thread John Love
inates the problem ... but, because I am very human, I could have missed something. I would be indebted to anyone who could find something else that obviously I have missed. As an aside, this "nswindow does not support utility stylemask 0x10" log entry appears twice ?? Best of

Prevent Asynchronous operation of beginSheetModalForWindow

2008-06-10 Thread John Love
Before I begin, I want to assure you that I have researched entries here on sheets, as well as those in MacTech.com. It's reasonably probable that I have missed some entries and so that is why I am asking for help. I also realize that this description is very long and I *really* did try to shorte

Re: Prevent Asynchronous operation of beginSheetModalForWindow

2008-06-16 Thread John Love
up on a separate SheetController .. but, in the meantime, I have something that works. Best regards, John Love ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: Prevent Asynchronous operation of beginSheetModalForWindow

2008-06-17 Thread John Love
"plain English". When I am finished with this housekeeping, I fully intend to return to sheet compartmentalization ... I have not given up ... I just wanted to get sheets to work. I will give you all the feedback when the elevator reaches the top.

Re: Prevent Asynchronous operation of beginSheetModalForWindow

2008-06-19 Thread John Love
Completed the housekeeping I needed to do .. so I began moving all the sheet code over to SheetController. Within FileController, I have 3 IBOutlets which are the 3 different sheet NSWindow's *and* the same 3 sheet NSWindow outlets for SheetController. I need to pass the specific sheet to my show

Re: Prevent Asynchronous operation of beginSheetModalForWindow

2008-06-26 Thread John Love
Graham, Still pouring over your thesis .. in process, so let me ask just one thing at a time, rather than chew here on the whole thing. (1) learning about anonymous type = (id) .. I make this call within FC: [iboCalculateSheetCtrl showSheetOnParentWindow:itsWindow

Re: Prevent Asynchronous operation of beginSheetModalForWindow

2008-06-27 Thread John Love
Graham, Yup, Nathan the double indirection of id * 1st, just the key snippet from FileController.m: @implementation FileController id mFileSheetDelegate; = Here's the complete interface and implementation files for just one SheetController, which has 2 buttons in its sheet window: // Sav

Re: Prevent Asynchronous operation of beginSheetModalForWindow

2008-06-28 Thread John Love
> (1) warning: no doSheetSelection:contextInfo method found which, I think, >> is >> due to the fact that the external class of mFileSheetDelegate = >> FileController, yet when referenced in SaveSheetController, it's = id, a >> general pointer. But, I thought all anonymous pointers were resolved a

Toolbar code in separate Controller?

2008-07-05 Thread John Love
atience of Graham Cox and others, I have learned a great deal about targets and delegates .. so, I pray that my error does not involve these concepts .. so I can at least say that my ignorance is on new ground. John Love ___ Cocoa-dev mailing list (Cocoa-

Re: Toolbar code in separate Controller?

2008-07-07 Thread John Love
Uli - To enable/disable the toolbar items, Cocoa uses the NSUserInterfaceValidation protocol, and asks each responder in the responder chain, beginning at the first responder. Have you inserted your toolbar controller in the responder chain so it actually gets asked whether these methods should be

Re: Toolbar code in separate Controller?

2008-07-15 Thread John Love
Document. So, based on the above, I should not call it a "category" of MyDocument. So what do I call it? Is it an "extension" of MyDocument? Apple states " NSToolbarItemValidation extends the standard validation idea ..". In Apple's Objective-C pdf, Apple sttates &q

Re: Toolbar code in separate Controller?

2008-07-15 Thread John Love
> Well, what are you asking? Does the code work or not? If not, what are the > symptoms? > Yes, it works without a shred of doubt .. I'm just trying to get my hands around "Category" .. there is no doubt whatsoever that unless I use "Category", no one will know what I'm talking about .. it just wo

Re: Toolbar code in separate Controller?

2008-07-17 Thread John Love
... and the lights went on ... and I hear fireworks! Andy said "I think of each of those bunches as categories of methods." YES!, not a category of an object, but a logically separate category of methods belonging to the object. So, @interface MyDocument (NSToolbarItemValidation) adds the m

NSDocument's isDocumentEdited

2008-07-20 Thread John Love
ess is wrong, or otherwise I would not have had to set the window to "dirty" elsewhere. Anyone have a clue here? Cheers, John Love ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comment

Re: NSDocument's isDocumentEdited

2008-07-23 Thread John Love
er) - (void) updateChangeCount:(NSDocumentChangeType)change; @end In summary, I have outlined two scenarios .. test for document editing within your MyDocument or within a separate Controller. In either case, you just need to call updateChangeCo

NSDocumentController, NSDocument and toolbars

2008-07-27 Thread John Love
o override within MedDocument is: - (BOOL) readFromURL:(NSURL*)absoluteURL ofType:(NSString*)typeName error:(NSError**)outError; as one of the few methods which Apple specifies should be overridden. What is going on here? John Love ___ Cocoa-dev mailing list

Re: NSDocumentController, NSDocument and toolbars

2008-07-27 Thread John Love
> > Well, what do you want the tool bar item to actually *do*? Whatever it is, > and whatever object is responsible for handling it is your action and > target, respectively. Just like a menu item. > I want it to call NSDocumentController's openDocument: which is the action of the "Open ..." File

readFromURL for the current document window, versus a new document window

2008-07-30 Thread John Love
's call to openDocument: leads to addDocument:, i.e, a new document window. John Love ___ 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(at)

Opening an external file in a external application

2008-08-11 Thread John Love
SProgressIndicator starts spinning and the appropriate text is placed in the NSTextField. I believe I want to do this opening within my override of - readFromURL. Am I on the right track here? John Love ___ Cocoa-dev mailing list (Cocoa-dev@lists.

Opening an external file in a external application

2008-08-11 Thread John Love
SProgressIndicator starts spinning and the appropriate text is placed in the NSTextField. I believe I want to do this opening within my override of - readFromURL. Am I on the right track here? John Love ___ Cocoa-dev mailing list (Cocoa-dev@lists.

Re: Opening an external file in a external application

2008-08-12 Thread John Love
On Aug 11, 08, at 2:28 PM, John Love wrote: I have a multiple document Cocoa app where I (try to) open an external file in whatever application the file belongs to -- in my case, an Excel spreadsheet in Excel. The new Cocoa document window shown keeps track of the calculation progress in

Re: Opening an external file in a external application

2008-08-13 Thread John Love
On 12 Aug 2008, has wrote: Really though, what's best/practical/possible all depends on what you're trying to do, so if you want more advice then you'll need to provide more information. Very short info list is as follows (stuff I need to do from within my Cocoa app): 1) be able to save

Re: Opening an external file in a external application

2008-08-14 Thread John Love
On Aug 13, 08, at 12:09 PM, Shawn Erickson wrote: On Aug 13, 2008, at 8:17 AM, John Love wrote: On 12 Aug 2008, has wrote: Really though, what's best/practical/possible all depends on what you're trying to do, so if you want more advice then you'll need to provide m

Re: Opening an external file in a external application

2008-08-14 Thread John Love
... thanks! [NSApp activateIgnoringOtherApps:YES]; ... now back to (1,2,3) above John Love Touch the Future! Teach! Whoops ... almost ... activateIgnoringOtherApps momentarily activates my cocoa app. However, the application, Excel, keeps activating itself until it is the front applicatio

I know this is a Studio question .. but I really need some help

2008-08-30 Thread John Love
ve stated that they had to do a complete restore of their HD; however, my iMac G5 is very brand new. What I did do was install 3.0, followed by updating to 3.1 and still no luck with Studio. Thanks in advance for any insight on this major issue. John Lov

Re: I know this is a Studio question .. but I really need some help

2008-09-01 Thread John Love
Please check out this link that I just this second found: http://lists.apple.com/archives/applescript-studio/2008/Aug/msg2.html .. and I just confirmed what this link stipulates .. nothing to do with length: end script on -- crash after the space following "on"

Objective-C and AppleScript

2008-09-01 Thread John Love
(execResult != nil) { // success wbActive = [execResult booleanValue]; } if (!wbActive) { // do something here } } else { // [self ExcelAppActive] sets and displays Error

NSOperationQueue

2008-09-13 Thread John Love
I have tried to create a Queue in which I have placed a rather lengthy calculation. Without the Queue, my app is essentially “frozen” until the calculation is completed. I have attempted to put this long calculation in a Queue, but when I try, my app literally crashes. So, here are some cod

NSOperationQueue

2008-09-13 Thread John Love
do not see this [theQueue cancelAllOperations]; // [theQueue release]; // done by [theOp release] [opData release]; [theOp release]; } - (void) startCalculation { [self startQueue]; } // I also call this method from another Controller - (void) stopCalculation {

Re: NSOperationQueue

2008-09-13 Thread John Love
process 358. [Switching to process 358 thread 0xab0f] [Switching to process 358 thread 0xab0f] [Switching to process 358 thread 0x10b] [Switching to process 358 thread 0x10b] [Switching to process 358 thread 0x10b] (gdb) John Love John Love Touch the Future! Teach! __

Re: NSOperationQueue

2008-09-13 Thread John Love
I found the source of my mess .. should have just passed nil to my selector = calculateWorksheet: John Love = On Sep 13, 08, at 11:46 AM, Shawn Erickson wrote: On Sep 13, 2008, at 8:34 AM, John Love wrote: > For clarification: It crashes after you call stopCalculation? Does

Re: NSOperationQueue

2008-09-13 Thread John Love
>>>>> FROM : Quincey Morris Your code is crashing because you're doing it wrong: On Sep 13, 2008, at 05:05, John Love wrote: > - (void) calculateWorksheet:(id)data { >int row; >for (row=1; row < 500; row++) { >// long calculation here

Re: async NSOperation and NSOperationQueue

2008-09-15 Thread John Love
waitUntilAllOperationsAreFinished]; } // more stuff } John Love Touch the Future! Teach! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: async NSOperation and NSOperationQueue

2008-09-16 Thread John Love
ating one of these objects within OutsideController -- but I am definitely not even remotely sure if this is the way to go. John Love Touch the Future! Teach! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mo

Re: async NSOperation and NSOperationQueue

2008-09-16 Thread John Love
+ Michael Ash wrote: When your application becomes unresponsive, pause it in the debugger and look at the backtraces of all the threads. (You can do this in a single step by typing "t a a bt" at the debugger console. This is a shortcut for "thread apply all backtrace".) This should quickly te

Re: async NSOperation and NSOperationQueue

2008-09-19 Thread John Love
;s calculations are done. By the way, -[ScriptController ExecAppleScript:] is outside my for- loop where all the Queue and Ops stuff is being manipulated. John Love Touch the Future! Teach! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: NSOperationQueue

2008-09-19 Thread John Love
on breaks from its for-loop } 12) Finally, my -calculateWorksheetRow looks like: - (void) calculateWorksheetRow { // column after column after column ... [self finishOperation]; } Again, if this is too wordy, I really apoligize for all the noise. John Love ___

Re: NSOperationQueue

2008-09-21 Thread John Love
has wrote: Getting back to the main discussion of the OP's threading/ NSOperationQueue problems, perhaps it would help if he backs up a bit and explains in general terms what he's trying to achieve, rather than focus on individual details of how he's currently trying to do it? That way, fo

NSNotificationCenter

2008-09-26 Thread John Love
tusChanged object:sentNotifyObject]; } Shouldn't my call to -addObserver automatically monitor "StatusChanged" rather than my having to -postNotificationName?? John Love ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post ad

Re: NSNotificationCenter

2008-09-26 Thread John Love
eiver changes a parameter, it automatically "posts" that a change has occurred, without having to explicitly post. I believe that "KVO" stands for key-value-order .. so obviously I've got a lot of digging to do, starting with Chapter #1, where ever that is. John Love __

Re: Using NSWorkspace's launchedApplication to detect running App

2008-12-14 Thread John Love
On Dec 13, 08, at 12:21 PM, Jean-Daniel Dupas wrote: Because operator overriding does not exists in Obj-C and so, == is a pointer comparaison and not a string comparaison. use the isEqual: method to compare two object. Thanks to everyone who chimed in .. and here are my changes:

Merry Christmas

2008-12-25 Thread John Love
A very Merry and Blessed! Christmas to all of you and your families and friends John Love Touch the Future! Teach! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: alloc init thread safe?

2009-01-06 Thread John Love
are definitely correct. Once again, "some strange problem somewhere". Thanks for listening. John Love Touch the Future! Teach! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comm

Works in main Thread, but not in background Thread

2009-01-07 Thread John Love
This request focuses on an old cocoabuilder thread: http://www.cocoabuilder.com/archive/...007/3/8/179989 David writes: > But now I find I have a BOOL method that is rarely and randomly returning NO when the only exit to the method is "return YES;" so I have some strange problem somewhere.

Works in main Thread, but not in background Thread (modified)

2009-01-07 Thread John Love
This request focuses on an old cocoabuilder thread: http://www.cocoabuilder.com/archive/message/cocoa/2007/3/8/179989 David writes: > But now I find I have a BOOL method that is rarely and randomly returning NO when the only exit to the method is "return YES;" so I have some strange problem

performSelectorOnMainThread

2009-01-10 Thread John Love
-performSelectorOnMainThread:withObject:waitUntilDone:, according to Apple docs, is passed a SEL method that "should not have a significant return value". I wish it to return a INT and I figure that that qualifies as in- significant. Given that assumption, my real question is how to imple

Configuring a Port-based Input Source -- Part 2

2009-01-26 Thread John Love
go? Should it be sandwiched somehow within –shouldExit,? Is it inserted within the main thread's – handlePortMessage, or is it placed within the above do-while loop? John Love Touch the Future! Teach! P.S. Hope I don't get bumped again for excessive length. ___

Configuring a Port-based Input Source -- Part 1

2009-01-26 Thread John Love
I have this request for help in two parts, because I've been bumped due to length: Reference: "Configuring a Port-Based Input Source" of http://developer.apple.com/documentation/Cocoa/Conceptual/Multithreading/RunLoopManagement/chapter_6_section_5.html#/ /apple_ref/doc/uid/1057i-CH16-SW7

Memory Leak, part I

2009-02-18 Thread John Love
[this is part I of a two-part plea for help] I I have read Apple's "ManagingMemory.pdf" and am still having difficulty understanding the use of MallocDebug which is detailed in "MemoryMgmt.pdf". I have 5 methods in the generation of a background thread and I cannot figure out where the mem

Memory Leak, part II

2009-02-18 Thread John Love
[part II of my plea for help] (3) - (void) doCalculation { for (row=1; row <= 1; row++) { // many rows, therefore much time if ([self shouldExit]) break; [self doCalculationForEachRow]; } } (4) - (BOOL) shouldExit { [self pingWorkbook];

Memory Leak, Part I

2009-02-18 Thread John Love
tus]; if (theCalcStatus == kCalculating) { // do stuff } else { // do stuff } } John Love ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comme

defaultCenter's addObserver

2008-10-07 Thread John Love
ugger complains about an invalid aSelector. I don't understand what's going on, so I'm looking for help. Again, everything works just great when I pass a non-nil object to defaultCenter's addObserver:selector:name:object: Thanks in advance, John Love ___

Re: defaultCenter's addObserver

2008-10-08 Thread John Love
On Oct 7, 08, at 5:58 PM, j o a r wrote: On Oct 7, 2008, at 12:03 PM, John Love wrote: 2008-10-07 14:36:14.149 Calculate Medical[265:10b] *** -[NSCFSet calcStatusChanged:]: unrecognized selector sent to instance 0xe41f250 John, This type of error message indicates that your

appscript installation

2008-10-10 Thread John Love
l and the usual long output resulted. But no where can I find the osaglue tool so I can then go to Terminal (?) and type such things as: osaglue -o TEGlue TE /Applications/TextEdit.app Terminal does not understand the osaglue command. My elevator is definitely not up on this one. John

problems with installing appscript as a substitute for NSAppleScript

2008-10-13 Thread John Love
I've got a almost complete Cocoa document-based app done. The "almost" centers just on my need for Thread-friendly AppleScript, which NSAppleScript is not .. so, enter appscript. Dug around and found ASTranslate which handily generates appscript code based on my input AppleScript code. T

new build phase and other framework topics

2008-11-01 Thread John Love
quot;Copy Files" following "Link Binary with Libraries" in the clip shows empty .. and I cannot figure out how to add files to it. I really need some help here. John Love Touch the Future! Teach! ___ Cocoa-dev mailing list (Cocoa-de

build phase and other issues of a framework

2008-11-01 Thread John Love
** 2nd message after editing by John Love ** I know that my knowledge of Frameworks is dismal; however, I desperately need help. I have read "Apple's Framework Programming Guide" and several posted web sites which are based on the old XCODE 2, that is to say, the old d

Re: new build phase and other framework topics

2008-11-01 Thread John Love
t" or "Private" will not be. Bingo .. changed from "Project" to "Public" .. then Build .. there they are. Where in the world was that printed anywhere. Good grief! Many, many thanks. John Love Touch the Future! Teach! ___

Strange Build Error = [EMAIL PROTECTED]@_cls_refs

2008-11-05 Thread John Love
o no avail. ".objc_class_name_SEApplication", referenced from [EMAIL PROTECTED]@[EMAIL PROTECTED] in ScriptController.o symbol(s) not found FYI, ScriptController.h imports SEGlue.h from a linked Framework; and that's where SEApplication comes from. John Love John Lov

main thread communicating with background thread and vice-versa

2008-11-21 Thread John Love
so basic and fundamental that I really feel lacking on this subject. John Love ___ 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

Main Thread stoppin Background Thread

2008-11-28 Thread John Love
udy KVC and its use on page 43 of Apple's doc. Should I conclude that this class variable is in the main thread and is not accessible by the background thread? If KVC is the only approach for inter-thread communication, I'll press on. A short amount of guidance is definitely ne

  1   2   >