Re: NSWindowController for Prefs XIB Question (Core Data involved) - Solved

2010-05-21 Thread Steve Cronin
variable the window now now opens. Hopefully this is helpful to someone else…. Steve >> On May 20, 2010, at 10:08 PM, Steve Cronin wrote: >> >>> Folks; >>> >>> I have a feeling that this is an embarrassing one so try and go easy on me… >>> XC 3.2.2

Re: NSWindowController for Prefs XIB Question (Core Data involved)

2010-05-20 Thread Steve Cronin
ontroller already exists or has just been alloc'ed and init'ed.. What I am just not understanding here? Please? Steve On May 20, 2010, at 10:08 PM, Steve Cronin wrote: > Folks; > > I have a feeling that this is an embarrassing one so try and go easy on me… > XC 3.2.2 >

NSWindowController for Prefs XIB Question (Core Data involved)

2010-05-20 Thread Steve Cronin
Folks; I have a feeling that this is an embarrassing one so try and go easy on me… XC 3.2.2 I have a main nib that opens a window and that works fine. I used to have an NSPanel in this nib to handle preferences. I've decided it's a good idea to split the nib into two different nibs: the main ni

Re: App won't launch in Debug but release product is fine

2010-05-11 Thread Steve Cronin
On May 11, 2010, at 4:53 AM, Jonathan del Strother wrote: > Long shot : has it hit a breakpoint? No > And if not, what happens if you pause the debugger and step through? Here's the stack after I launch, see "Run", then hit 'Pause' #0 0x9809d2fa in mach_msg_trap #1 0x9809da67 in ma

App won't launch in Debug but release product is fine

2010-05-11 Thread Steve Cronin
Folks; I need to pare back a project, remove some of the cruft. I copied the entire project directory and renamed the project and bundle identifier for now. I've removed various IB widgets as well as objC classes. I can now build without any issues in debug and release. If I double click the re

Re: Why is compiler warning for +setKeys:triggerChangeNotificationsForDependentKey: ??

2010-04-20 Thread Steve Cronin
t;lastName",nil] triggerChangeNotificationsForDependentKey:@"fullName"]; } On Apr 20, 2010, at 8:53 PM, Graham Cox wrote: > > On 21/04/2010, at 11:48 AM, Steve Cronin wrote: > >> I'm seeing compiler warnings -> : warning: 'ABC' may not res

Why is compiler warning for +setKeys:triggerChangeNotificationsForDependentKey: ??

2010-04-20 Thread Steve Cronin
Folks; Subclassed NSObject now getting compiler warnings - don't understand why? @interface ABC : NSObject { } @end @implementation ABC + (void)initialize { ... keys = [NSArray ..]; [self setKeys:keys triggerChangeNotificationsForDependentKey:@"xyz"]; ... } @end I'm seeing compiler

Re: Automator Actions and CFBundleExecutable key

2010-04-10 Thread Steve Cronin
On Apr 10, 2010, at 3:51 PM, Fritz Anderson wrote: > Did you change the action type to Cocoa after starting with AppleScript or > shell script? No > Have you examined the contents of the action bundle in the problem case? > Clean the target first, then build. Control-click Products > yourBund

Re: Automator Actions and CFBundleExecutable key

2010-04-10 Thread Steve Cronin
On Apr 10, 2010, at 3:08 PM, Fritz Anderson wrote: > You don't say what kind of Automator action you are building — script, > AppleScript, or Cocoa? Cocoa > And what do you mean by "compile warnings?" The compiler doesn't know or care > about the contents of Info.plist. The build system might

Automator Actions and CFBundleExecutable key

2010-04-10 Thread Steve Cronin
Folks; I have an Automator action that is giving me a confusing result. If I include an 'Executable File' key in the info.plist - debug compile - with no executable this key is pointless - release compile - no warning If I remove the 'Executable File' key from the info.plist - debug compile - no

My first framework - but no 'Header'

2010-04-01 Thread Steve Cronin
Folks; I'm trying to build my first framework. I added a new target of type framework. There are 4 build steps: Copy Headers, Compile Bundle Resources, Compile Sources, and Link Binary With Library I've added all the .h files to the 'Copy Headers' and all the .m files to 'Compile Sources' Ever

Re: Using the #import directive

2010-04-01 Thread Steve Cronin
On Apr 1, 2010, at 5:58 PM, Jens Alfke wrote: > > On Apr 1, 2010, at 3:51 PM, Steve Cronin wrote: > >> I have an import statement like the last example but I can't find any "bar" >> directory >> I'm unable to determine the particular

Using the #import directive

2010-04-01 Thread Steve Cronin
Folks; I'm puzzled by a configuration Here are my assumptions: #import //generally a framework reference - is relative to /System/Library #import "foo.h" //source file found in $(SRCROOT) #import "bar/foo.h" // source file found in a directory relative to

UIApplication terminate?

2010-03-16 Thread Steve Cronin
Folks; I have an iPhone application that is used for a very specific purpose. After perusing and modifying data the user is given the option to effectively [Cancel] or [Save] After they have made their decision the app's purpose has been served for this instance. What I would like to do is e

Re: #include CommonStrings.txt - 'no such file' error

2010-03-14 Thread Steve Cronin
e: > .txt looks wrong. > Why not create .h and .m and import the .h? > Usually you #import, not #include in ObjC. > > .h > extern NSString *gLeftBracket; > > .m > NSString *gLeftBracket=@"<"; > > atze > > > Am 14.03

#include CommonStrings.txt - 'no such file' error

2010-03-13 Thread Steve Cronin
Folks; I have a dozen or so strings that I use over and over in various classes. So here's what I've done I have a CommonStrings.txt file added to the project. It looks like this: NSString *gLeftBracket =@"<"; NSString *gRightBracket =@">"; If I #include this file somewhere in

The Location of the Service Menu

2010-03-10 Thread Steve Cronin
Folks; I want to provide a service which will open a small HUD for fine-tuning the request. It seems to me that this HUD should open nearby where the context request occurred. I've poked around some and haven't hit anything promising. As the recipient of the service call 'xyz: userData:error:'

NSTableViewDropAbove visual remnant

2010-03-08 Thread Steve Cronin
Folks; I have a tableView which is working pretty handily. I support a form of import by dropping a text file on it. The backing arrayController returns an NSTableViewDropAbove for UI feedback purposes. (the row the file is dropped on (or above) doesn't actually matter) I

Re: Improving the User Experience for First Use of Downloadable Software

2010-02-26 Thread Steve Cronin
estigation' impulse a the potential customer… I'm on a tear to reduce these reasons for abandoning…. My research shows if folks actually install and try my program - they tend to buy it! Steve On Feb 26, 2010, at 3:59 PM, Nick Zitzmann wrote: > > On Feb 26, 2010, at 2

Re: Improving the User Experience for First Use of Downloadable Software

2010-02-26 Thread Steve Cronin
Folks; Thanks for the thoughts on this matter! I think Matt raises an great point about hijacking on subsequent launches. Personally I'm mistrustful of installers.. why does a simple application need to go mucking around on my system? why is this application different than all th

Improving the User Experience for First Use of Downloadable Software

2010-02-25 Thread Steve Cronin
Folks; My Mac-based Cocoa application is now available as a free trial download from the internet. The first time a user opens the software a warning is shown informing the user that this software has never been used and was downloaded from the internet -- thanks redmond =[:-( I understand

Improving the User Experience when Installing a Snow Leopard Service

2010-02-25 Thread Steve Cronin
Folks; I'm a big fan of Snow Leopard's revised support for Services. In fact my application has a service that I would like most of my customers to use. What I have found from watching test subjects install my software is that many folks stumble on enabling the service. I understand that user n

Re: 'ditto' troubles

2010-02-23 Thread Steve Cronin
… Thanks Again Steve On Feb 23, 2010, at 2:43 PM, Fritz Anderson wrote: > On 23 Feb 2010, at 2:11 PM, Steve Cronin wrote: > >> I have all of this working including a build step that compresses the >> appropriate release version of Helper >> (/usr/bin/ditto -c -k --se

'ditto' troubles

2010-02-23 Thread Steve Cronin
Folks; This is a Mac application. I have a helper app that I want to transport inside of a larger app (Mother) At the user's discretion I want to deploy the helper app The helper app CAN be called by AppleScript. In order to help with Mother's file size and inadvertent calling of Helper (when n

Multiple copies of an application installed

2010-01-20 Thread Steve Cronin
Folks; I've found through field testing that some of my customers are keeping several copies of my application on their computer. At various points in the usage, it is possible to launch the application using AppleScript as well as by invocations of -launchAppWithBundleIdentifier: However, whe

the ABLocalizedPropertyOrLabel() function

2009-12-07 Thread Steve Cronin
Folks; I am trying to understand the ABAddressBook's ABLocalizedPropertyOrLabel() function. I can find descriptions of what it is supposed to do but no actual examples or guidance on how to use it or the necessary conditions for it to work. I have configured a Snow Leopard machine to use Danis

ABAddressBook -> Default Account?

2009-12-07 Thread Steve Cronin
Folks; In Snow Leopard an Address Book user now has a preference setting for setting the 'default account for new contacts' -save always stores to the local machine regardless Am I just missing something? Thanks, Steve ___ Cocoa-dev mailing list (

Re: rangeOfString & UTF8 - SOLVED

2009-10-04 Thread Steve Cronin
Thanks for your time! Steve On Oct 4, 2009, at 4:17 PM, Clark Cox wrote: On Sun, Oct 4, 2009 at 1:48 PM, Steve Cronin wrote: Folks; (thePhrase) : Geschäftsführer (CEO): (tString): Geschäftsführer (CEO) Both curPos = [thePhrase rangeOfString: tString options:NSCaseInsensitiveSear

rangeOfString & UTF8

2009-10-04 Thread Steve Cronin
Folks; (thePhrase) : Geschäftsführer (CEO): (tString): Geschäftsführer (CEO) Both curPos = [thePhrase rangeOfString: tString options:NSCaseInsensitiveSearch].location; AND NSLocale *tLocale = [[[NSLocale alloc] initWithLocaleIdentifier:@"de_DE"] autorelease]; curPos = [thePhrase r

Re: Nib Loading Crash on Tiger only -- SOLVED (well made gone...)

2009-09-30 Thread Steve Cronin
Folks; I opened the .xib file in a text editor -searched for 'NSCoreUIImageRep' I found one instance (thankfully) and by 'reading' the text was able to determine that it was a matrix of 2 radio buttons. I removed the offending matrix and re-instantiated a fresh one. I monitored the .xib text

Re: Nib Loading Crash on Tiger only

2009-09-30 Thread Steve Cronin
Kyle * Graham; The IB Info says: Deployment Target: 10.4 Development Target: IB 3.2 There are no error or warnings! What should I be looking at? Steve On Sep 30, 2009, at 1:56 AM, Kyle Sluder wrote: Check your IB compatibility settings. Looks like you've archived an image into your nib th

Nib Loading Crash on Tiger only

2009-09-29 Thread Steve Cronin
Folks; I have converted to using SL; XC3.2; IB 3.2. I have an app with a deployment target of 10.4 There are no IB warnings; the dev target is IB 3.2 Things have been working reasonably well but now when I test on a Tiger I crash immediately Leopard and Snow Leopard are fine 2009-09-30 01:34

Re: Static Analyzer Question

2009-09-29 Thread Steve Cronin
Gentlemen; YES Bingo! + newWidgetID I love how Cocoa can so drive you crazy and then when insight happens it's often nearly painful in its elegance and simplicity… Breathtaking sometimes…. Thank-you all, Steve On Sep 29, 2009, at 5:12 PM, Steve Cronin wrote: "…. Object with

Static Analyzer Question

2009-09-29 Thread Steve Cronin
Folks; I have a Clang issue that is making me a little crazy. I have a modestly complex Core Data application with several thousand lines of code. I've run Clang and at this point I have only one issue: "…. Object with +0 retain counts returned to caller where a +1 (owning) retain count is

App Crashing on a second AppleScript call

2009-09-25 Thread Steve Cronin
Folks; I have an app that receives AppleScript calls App passes Clang with no warnings; using XC 3.2 w/ 10.6SDK The call is made successfully and performs beautifully -- the first time! Everything works just as intended. The second script call is processed by the app but crashes immediately

Data Model Versions and -fetchRequestTemplateForName

2009-09-20 Thread Steve Cronin
Folks; I have recently converted to XC & IB 3.2 I've updated my project to be a 3.2 project using a baseSDK of 10.6 with deployment target of 10.4 I have a Core Data model that I've been very happy with starting in 10.4 and continuing in 10.5.. In readying for the brave new world ahead I ha

Re: MutableDictionary setValue:forKeyPath - strange behavior

2009-09-20 Thread Steve Cronin
On Sep 20, 2009, at 5:01 PM, Kyle Sluder wrote: On Sun, Sep 20, 2009 at 12:42 PM, Steve Cronin wrote: essentially it is: "Essentially" isn't good enough; actual copy-paste is necessary to ensure you're doing it correctly. NSMutableDictionary *localDict = [

Re: MutableDictionary setValue:forKeyPath - strange behavior

2009-09-20 Thread Steve Cronin
ettings release]; myBaseSettings = [newSettings retain]; } } Does this provide you the information you are looking for? Steve On Sep 20, 2009, at 1:51 PM, Kyle Sluder wrote: On Sep 20, 2009, at 11:35 AM, Steve Cronin wrote: I have an instance variable which is an NSMutableDictionary * myBas

Re: MutableDictionary setValue:forKeyPath - strange behavior

2009-09-20 Thread Steve Cronin
, 2009, at 11:35 AM, Steve Cronin wrote: I have an instance variable which is an NSMutableDictionary * myBaseSettings You need to post the code that creates this dictionary. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

MutableDictionary setValue:forKeyPath - strange behavior

2009-09-20 Thread Steve Cronin
Folks; I have recently converted to XC & IB 3.2 I've updated my project to be a 3.2 project using a baseSDK of 10.6 with deployment target of 10.4 I've run the static analyzer and have no analyzer issues as well as no compiler nor IB warnings I'm feeling good about this but now code that wo

Re: Static Analyzer and Core Foundation

2009-09-18 Thread Steve Cronin
Luke; I've adapted the code to accomodate your's and Chris' answer to question 2. Here's the entire method, which now shows not static analyzer issues but I still would like to understand why not. + (NSDictionary *)metadataForFilePath:(NSString *)thisPath { NSDictionary *md = [NSD

Re: Static Analyzer and Core Foundation

2009-09-18 Thread Steve Cronin
MDItemCopyAttributes. The object that you create inside that call is never released. Luke On Sep 18, 2009, at 4:33 PM, Steve Cronin wrote: Folks; Alert - potential boneheaded-ness lies ahead - please be gentle. I'll be the first to admit that I'm much happier in ObjC than C… I thought I

Static Analyzer and Core Foundation

2009-09-18 Thread Steve Cronin
Folks; Alert - potential boneheaded-ness lies ahead - please be gentle. I'll be the first to admit that I'm much happier in ObjC than C… I thought I would try static analysis and see what turned up. On the whole I must say I'm pleased but this one has me questioning my basic understanding

Re: Interface Builder .xib deployment/development targets

2009-09-16 Thread Steve Cronin
, at 12:46 AM, Steve Cronin wrote: Folks; Got another report today from the field also a MacBookPro5,1 running 10.5.8 2009-09-16 03:01:53.954 XYZ[329:20b] Error loading /Library/ ScriptingAdditions/QXPScriptingAdditions.osax/Contents/MacOS/ QXPScriptingAdditions: dlopen(/Library

Re: Interface Builder .xib deployment/development targets

2009-09-16 Thread Steve Cronin
c970 x86_64) How I do I hone in on where the problem is?? Steve On Sep 15, 2009, at 1:50 AM, Graham Cox wrote: On 15/09/2009, at 4:44 PM, Steve Cronin wrote: 15:01:38.292 XYZ[11756:20b] HIToolbox: ignoring exception '*** -[NSCFString substringToIndex:]: Range or index out of bounds'

Interface Builder .xib deployment/development targets

2009-09-14 Thread Steve Cronin
Folks; I have an app with a 10.4 Deployment target. I have recently begun using XC 3.2 and IB 3.2 - spp compiles cleanly and all IB 'sibling' issues have been resolved. I've gotten a field report (release) where I'm seeing: 15:01:38.292 XYZ[11756:20b] HIToolbox: ignoring exception '*** -[NS

Re: Developing a Stand-Alone Service in Snow Leopard

2009-09-14 Thread Steve Cronin
r your time and consideration! Steve On Sep 14, 2009, at 1:16 AM, Steve Cronin wrote: John; That's good information but I don't see how it helps with a stand- alone service - how do I (or user) launch the .service bundle? Steve On Sep 14, 2009, at 1:12 AM, John C. Randolph wrote:

Re: Developing a Stand-Alone Service in Snow Leopard

2009-09-13 Thread Steve Cronin
John; That's good information but I don't see how it helps with a stand- alone service - how do I (or user) launch the .service bundle? Steve On Sep 14, 2009, at 1:12 AM, John C. Randolph wrote: On Sep 13, 2009, at 10:55 PM, Steve Cronin wrote: I have convinced myself that th

Developing a Stand-Alone Service in Snow Leopard

2009-09-13 Thread Steve Cronin
Foks; I'm trying to develop a stand alone service in Snow Leopard. The issue I'm running into is how to update the system as I compile a new version. The pbs command shows that the bundle path is the one in my Release Build folder "pbs -dump_pboard" { NSBundleId

Snow Leopard and Exchange access using ABAddressBook

2009-09-10 Thread Steve Cronin
Folks; I am trying to understand whether ABAddressBook will permit interaction with Exchange. I don't see anything in the documentation specifically on this point. Can anyone comment on this? Am I missing a resource? Is it currently not supported? Thanks for any thoughts! Steve

Re: XC & IB 3.2 overlapping siblings

2009-09-10 Thread Steve Cronin
p 10, 2009, at 2:51 AM, Steve Cronin wrote: My base SDK is set to 10.6 and a deployment of 10.4. Everything was peachy under 10.5 and XC3.1 no such warnings or errors. Sooo does this mean I cannot use XC3.2 unless I fix all these issues? Nib deployment targets are actually set in the nib

XC & IB 3.2 overlapping siblings

2009-09-10 Thread Steve Cronin
Folks; I know I'm late to the game here but I just took my app for a compile under XC3.2 for the first time… A few NSString encoding loose ends OK but WHAMO my .xib files are hammered with ~100 errors (not warnings!) ".. This view overlaps one of its siblings. Overlapping sibling views

Re: Core Data Predicate Builder - comparing dates

2009-08-29 Thread Steve Cronin
Ben; Thanks for taking the time to respond. I believe that I was blinded by a build issue in my allegation that the Predicate Builder mechanism was not giving correct results. This seems to be working fine now. I'm glad you have expressed the fragility issue on equivalence - I'll remember t

Core Data Predicate Builder - comparing dates

2009-08-27 Thread Steve Cronin
Folks; I have a Core Data entity that has a dateCreated and a dateModified - both NSDates in the object files. I'd like to construct a predicate that will retrieve all records where a record's dateModified is greater than that record's dateCreated. Its deceptively easy to setup something th

Intermittent Console Log Entries '.sdef error' - Where from? What does it mean?

2009-08-12 Thread Steve Cronin
Folks; I have a logging facility built into my application to assist in troubleshooting from the field. These 4 lines appear SOMETIMES in user submitted log files: 2009-08-12 10:57:55.383 MyApp[296:20b] .sdef error: (null) 2009-08-12 10:57:55.383 MyApp[296:20b] line number: 2 2009-08-12 10:5

From NSTextView to address an NSTextField

2009-08-02 Thread Steve Cronin
Folks; NSTextView <- NSText <- NSView <- NSReponder <- NSObject NSTextField <- NSView <- NSReponder <- NSObject At runtime if I have access to an instance of NSTextView how can I address the NSTextField? I know I should know this but I having a 'moment'... Steve

Re: IB TextField Bindings and dragging text

2009-08-02 Thread Steve Cronin
Folks; Found the answer: NSDictionary *bindDict = [self infoForBinding:@"value"]; [[bindDict objectForKey:@"NSObservedObject"] setValue:newString forKeyPath:[bindDict objectForKey:@"NSObservedKeyPath"]]; On Aug 2, 2009, at 1:32 PM, Steve

IB TextField Bindings and dragging text

2009-08-02 Thread Steve Cronin
Folks; I have several text fields bound to a mutable dictionary in the window controller. Works fine. I want to provide drag-n-drop text snippets into these text fields. I have all the drag-n-drop working just fine -- (uses custom text fields and the window field editor) Within the perfor

AppleScript Record and NSDictionary

2009-07-21 Thread Steve Cronin
Folks; From my Cooca app I want to call an AppleScript with several parameters one of which is an AppleScript record. I've got everything about calling and return values working smoothly. What I can't seem to get is how to create that parameter record. I have been able to build AppleScript l

Re: Sorting an editable tableView of managed object

2009-07-04 Thread Steve Cronin
g the binding does get the UI job done but leaves me at a dead end in my understanding of why the code I submitted doesn't accomplish my goal! Thanks for your time and help! Steve On Jul 4, 2009, at 5:51 PM, Matt Neuburg wrote: On Fri, 03 Jul 2009 17:00:59 -0500, Steve Cronin said:

Sorting an editable tableView of managed object

2009-07-03 Thread Steve Cronin
Folks; I have a simple one column tableView of a managed object. The text field in the table view is editable. I want to keep the table sorted when the user manually changes a value, I have registered for the notification: [[NSNotificationCenter defaultCenter] addObserver:self selector:@selec

Re: Sorting on a table view of a managed object - debugger throws exception

2009-07-02 Thread Steve Cronin
Quincey; Do you in fact have a "code" property? On the app delegate? What's does it's @property (or accessor prototype) look like? The 'code' property is declared on an entity: MyEntity. The accessors were created by XCode itself using the 'Copy Method Declaration/Implementation to Clipboard'

Re: Sorting on a table view of a managed object - debugger throws exception

2009-07-02 Thread Steve Cronin
Quincy; Hey thanks for some useful data! BUT it is not what is happening in this case. I have a base class MyManagedObject that all entities are derived from. MyManagedObject has the - setNilValueForKey: method defined. I set a breakpoint there and a log message as well. Neither are ever call

Sorting on a table view of a managed object - debugger throws exception

2009-07-02 Thread Steve Cronin
Folks; 10.5.7 - 10.5 SDK - target 10.4 I have a managed core data entity working pretty nicely. I can display values in a tableView blah-blah Clicking on table column headers does as expected IN RELEASE versions for both Tiger and Leopard. However, in the debugger a click on table col

Re: Approaches for this Matching Problem?

2009-06-22 Thread Steve Cronin
know there remains the root forms issue but let's not drag that issue in here Steve On Jun 22, 2009, at 12:52 PM, Ken Thomases wrote: On Jun 22, 2009, at 3:10 AM, Steve Cronin wrote: So I've been pondering and testing... 1) Why would I have to bust up/loop on thePhrase? BUT in

Re: Approaches for this Matching Problem?

2009-06-22 Thread Steve Cronin
Ken & Jerry; Thanks for the quick response! So I've been pondering and testing... 1) Why would I have to bust up/loop on thePhrase? This makes me face Jerry's issue of a universal solution for breaking on words. Just on general principal what would that solution be? [thePhrase componentsSep

Approaches for this Matching Problem?

2009-06-21 Thread Steve Cronin
Folks; I would like to solicit feedback on the best approach to solve this problem: "phrase contains any word in set {a,b,c...}" I have a user supplied phrase (usually 3-5 words; max of 10 words) -> thePhrase The user may provide any random phrase... I also have a user managed array of w

CoreData and ArrayControllers

2009-06-16 Thread Steve Cronin
Folks; Using 10.5 SDK deploying to 10.4 on an Intel 10.5.7 machine running XC 3.1.2 I have a Core Data model against which I have successfully loaded data. Now I want to display some data in a tableView - so I drag a stock arrayController from IB onto a window. I set the Mode to 'Entity'

Dragging text between NSTextFields - A 'source' question

2009-06-12 Thread Steve Cronin
Folks; I want to allow users to drag selected text between text fields. I have subclasses NSTextField and implemented: - (void)awakeFromNib { [self registerForDraggedTypes:[NSArray arrayWithObject:NSStringPboardType]];} - (unsigned int)draggingEntered:(id )sender { ... - (BOOL)performDragOp

Apple Sample Code not working? SampleCMPlugin

2009-05-21 Thread Steve Cronin
Folks; I'm making slow progress on what seems like should be a really simple contextual menu plugin. Build the 2006 version of Apple's SampleCMPlugin (that's the latest I could find) There is a section of code to determine if the current selection is text (or could be coerced to text):

Contextual Menu Plugin - not getting registered??

2009-05-20 Thread Steve Cronin
Folks; I'm trying to write a pretty simple contextual menu plug in I've modeled it after SampleCMPlugin. I just to the COM stuff straight away. I successfully compile and move the release product to ~/Library/ Contextual Menu Items I log out and back in I never see any of the printf() e

Re: valueForKeyPath

2009-04-30 Thread Steve Cronin
Folks; Annoyed that something was amiss I have respecified the various bits of code and it all now works as I knew Cocoa would.. Best explanation I can offer is some spelling error in key handling of which I was blinded.. Sorry for the nuisance on the list! [:-( Steve This code works: NSM

valueForKeyPath

2009-04-30 Thread Steve Cronin
Folks; I have a mutable dictionary 'myPerson' which has a key=@"address". The object stored at @"address" is another mutable dictionary. someCity = [myPerson valueForKeyPath:@"address.city"] --> nil someCity = [[myPerson valueForKey:@"address"] valueForKey:@"city"] -- > expected value Why

Re: How to clone a mutable dictionary

2009-04-24 Thread Steve Cronin
" Is the reason you are alluding to the complications due to instance variables that is noted in the NSMutableCopying Protocol notes? Or are you thinking of another reason? Steve On Apr 24, 2009, at 11:34 AM, Mike Abdullah wrote: On 24 Apr 2009, at 17:15, Steve Cronin wrote: Graham;

Re: How to clone a mutable dictionary

2009-04-24 Thread Steve Cronin
Graham; THANK-YOU for this informative and "full-bodied" answer! I want make sure I fully understand: 1) The "Easy Way" works only if there are no collection objects as values in the "copied" dictionary (or other collection). It seems to me that the "Hard Way" is ultimately necessary for "ev

How to clone a mutable dictionary

2009-04-24 Thread Steve Cronin
Folks; Its been a long day and maybe I'm just in need of sleep but I'm bamboozeled... I have an NSMutableDictionary (newThing) that is set up based on some user defaults and current contextual data. newThing is fine. What I want to do is clone newThing (newThing2) and leave the values

3 iPhone SDK Questions

2009-04-15 Thread Steve Cronin
Folks; I haven't stuck my toe in the iPhone water yet. I know I could find the answers to these by digging but I've been asked to find out the answers quickly... 1) Does the iPhone support the Cocoa AddressBook.framework? If so, do the AB change notifications also work? 2) We believe tha

IB 3.1 Panel Has Maximum Size funky - workaround?

2009-04-05 Thread Steve Cronin
Folks; I have a panel which I want to allow the user to extend vertically up to 100 pixels. IB 3.1 (xib) Resize flag - ON Has Minimum Size - ON (use Current to establish the base size) Has Maximum Size - ON (use Current then add 100 to Height) Now the project won't compile: error: This windo

How to detect curly quotes

2009-03-31 Thread Steve Cronin
Folks; I'm reading input from a text file (stringWithContentsOfFile) I have no control over. Testing is going well until a I encounter a phrase is wrapped in curly quotes. (Note phrases wrapped in straight quotes are fine) Without trying to digest the entirety of the Mac OS Text Encoding

Re: NSAppleScript - what is going on here?

2009-03-22 Thread Steve Cronin
d lose the resistance but there are only so many mountains one guy can climb... Thanks for the very helpful note! Steve On Mar 22, 2009, at 12:43 PM, Adam R. Maxwell wrote: On Mar 21, 2009, at 10:38 AM, Steve Cronin wrote: The 'theScript' is a valid script that executes flawlessly

Re: NSAppleScript - what is going on here?

2009-03-22 Thread Steve Cronin
SDEF file had been renamed. As Samuel Jackson said in "Black Snake Moan" -- "Collar that dog!", Steve On Mar 22, 2009, at 12:05 PM, Matt Neuburg wrote: On Sat, 21 Mar 2009 12:38:11 -0500, Steve Cronin said: Folks; I'm trying to get a string value back from a simple

NSAppleScript - what is going on here?

2009-03-21 Thread Steve Cronin
Folks; I'm trying to get a string value back from a simple AppleScript in Cocoa: NSDictionary *errorDict= nil; NSAppleScript *appleScriptObject = [[NSAppleScript alloc] initWithSource:theScript]; NSAppleEventDescriptor *eventDescriptor = [appleScriptObject executeAndReturnError: &errorDi

What is the console trying to tell me?

2009-03-19 Thread Steve Cronin
Folks; I have an 10.5 Intel development environment but I am deploying to 10.4 Universal using the 10.4 SDK. I have a QTMovieView object from IB in a window. When I run in Debug mode a message appears in the Console. When I run in Release mode on either platform - no message appears (I rou

Double Initialize - is that how it should be?

2009-03-16 Thread Steve Cronin
Folks; I use an object in my application called 'appDelegate'; it's a subclass of NSObject. I instantiate this object in the main Nib file This object has IBActions for the main menu and since it is -app delegate it is a kind on central dispatcher. My question is this: The +initialize is

Re: NSTextView won't allow a Return (Enter)

2009-03-07 Thread Steve Cronin
Folks; Sheepish - the offending textView was set as field Editor Yeesh I guess I need some sleep. Thanks for the responses! Steve On Mar 8, 2009, at 12:02 AM, Scott Anguish wrote: what bindings have you set for the misbehaving text view? On 8-Mar-09, at 12:41 AM, Steve Cronin wrote

NSTextView won't allow a Return (Enter)

2009-03-07 Thread Steve Cronin
Folks; I'm really puzzled by this one. In one window I have a TexView inside a ScrollView - works well - user can type many lines and scroller appear and disappear as expected. In another window I have another TextView inside a ScrollView and every time the user hits the 'Return' or 'Ent

Cocoa <- > PHP <-> MySQL

2009-03-03 Thread Steve Cronin
Folks; I've inherited some Cocoa code that uses NSMutableNURLRequest and NSURLConnection to pass .php request to a server. The NSMutableURLRequest packs up some data into the the .php which stuffs this data into a MySQL database. This is all working nicely. Now what I've been asked to make

Re: NSToolbarItems - deallocating view-based items

2009-02-10 Thread Steve Cronin
view based toolbar items if you intend to allow customization; that you must build the entire view in code? Could you explain just a bit more? Steve On Feb 10, 2009, at 5:47 PM, Peter Ammon wrote: On Feb 9, 2009, at 7:13 PM, Steve Cronin wrote: Folks; I have a mix of view and

NSToolbarItems - deallocating view-based items

2009-02-09 Thread Steve Cronin
Folks; I have a mix of view and image based toolbar items. The views are all IBOutlets defined in IB. Everything is working well - events are handled and items arevalidated, everything is dandy. Except when the user customizes the toolbar. The image based items can be added and removed 'till

Warning 'could not find object file' on NSAppleScript -executeAndReturnError

2009-02-06 Thread Steve Cronin
Folks; I use AppleScript to accomplish some inter-application tasks. Over time I have a developed several utility routines in Cocoa, one of which is to return the results of an arbitrary script execution. as an NSString: - (NSString *) getStringResutlFromAppleScript:(NSString *)theScript {

Re: NSService - I need a headslap (A Solution)

2009-02-05 Thread Steve Cronin
ne else. Steve On Feb 4, 2009, at 5:10 PM, Peter Ammon wrote: On Feb 4, 2009, at 1:23 PM, Steve Cronin wrote: NSMenuItem Menu item title MyService The key

Re: NSService - I need a headslap

2009-02-04 Thread Steve Cronin
a script. NSUpdateDynamicServices() is the right way to programmatically refresh Services. -Peter On Feb 4, 2009, at 7:03 AM, Steve Cronin wrote: Well, sheesh - that's embarrassing! There is no 'self' until init - I know that! Ugh. However, that doesn't cha

Re: NSService - I need a headslap

2009-02-04 Thread Steve Cronin
n for new Services is to run pbs directly: /System/Library/CoreServices/pbs However, pbs has no supported public interface and this will (has already) change, so don't include any reference to pbs in a script. NSUpdateDynamicServices() is the right way to programmatically refresh Services.

Re: NSService - I need a headslap

2009-02-04 Thread Steve Cronin
rn self; } - (void) applicationDidFinishLaunching:(NSNotification *)aNote { [NSApp setServicesProvider:self]; void NSUpdateDynamicServices(void); } - (void) myServiceName:(NSPasteboard *)pboard userData:(NSString *)userData error:(NSString **)error { . } On Feb 4, 2009, at 5:47 AM,

NSService - I need a headslap

2009-02-04 Thread Steve Cronin
Folks; I have a need for a stand-alone service. Seems like Service don't get alot of love... (Maybe that's my problem .. but I don't think so) To be clear here, this is a stand-alone .service type application (not a service vended by a larger app (like Mail). Here's what I have done: 0) b

Re: Sizing table columns to fit data - a solution looking for suggestions

2009-01-30 Thread Steve Cronin
Corbin; Hey thanks for replying! First off, don't use the 'tableView:' prefix for your own delegate methods. Consider what would happen if AppKit introduced the same delegate method in a future release. Well, I can tell you from experience that it won't be good. So, please make it somethin

Sizing table columns to fit data - a solution looking for suggestions

2009-01-29 Thread Steve Cronin
Folks; iTunes and Excel both have a feature wherein if you double-click on the column divider in the tableHeader then the table column width is adjusted to the maximum width of the data in the column. Below is a reasonably generic Cocoa solution for implementing this behavior. The tableVi

Re: How to debug a loadNib error in a Release version?

2009-01-29 Thread Steve Cronin
Corbin; Thanks for responding! I don't understand "..Symbolicate your backtrace.." Can you take a moment and educate me on this? Thanks! Steve On Jan 29, 2009, at 1:24 PM, Corbin Dunn wrote: On Jan 29, 2009, at 9:54 AM, Steve Cronin wrote: Folks; An Australian tester i

How to debug a loadNib error in a Release version?

2009-01-29 Thread Steve Cronin
Folks; An Australian tester is reporting the crash shown below... How can I best attack this problem? What kind of IB setting causes a 'makeObjectsPerformSelector:'? I do not directly call such a method in my code at all. What do I make of the 'CFRelease' at frame 0? What can I do to facilitate

NSTextView and automaticLinkDetection

2009-01-19 Thread Steve Cronin
Folks; NSTextView has an attribute 'automaticLinkDetection' that can be set in IB or with the usual -set method. What the docs say is that it "...causes strings representing URLs typed in the view to be automatically made into links to those URLs..." This is what I observe. If I begin typing

  1   2   >