Re: unable to select submenu item

2009-11-18 Thread Keary Suska
) |- Save (NSMenuItem) `- Save As (NSMenuItem) Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: NSUndoManager and runModalForWindow: (again)

2009-11-16 Thread Keary Suska
that the API simply does the right thing, or appears to under certain circumstances. There may be a combination of issues involved. My advice would be to make sure that when your modal session is active that the undo actions will always use the temporary MOC's undo manager. Best, Keary Suska

Re: NSTableView Always Undesirably Selects First Row when It Loses Key Focus

2009-10-25 Thread Keary Suska
controller objects or bindings for the table. Does your table allow empty selections? HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Bindings, am I doing right by MVC?

2009-10-23 Thread Keary Suska
, but your approach above is not wrong. If the bound fields are editable, I recommend using an intermediate NSObjectController because you will get some useful behavior for free, such as -commitEditing and the like. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home

Re: Bindings Driving Me CRAZY. :'(

2009-10-12 Thread Keary Suska
to UserListViewController.NSArrayController.selection (using correct ivar/property names, of course). HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Bindings Driving Me CRAZY. :'(

2009-10-12 Thread Keary Suska
results) and you will find numerous discussion and techniques. Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Help needed with orientation to bindings

2009-09-21 Thread Keary Suska
apply formatters or transformers to force default values (if you can't do that at the model level). HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: sortedArrayUsingFunction

2009-08-24 Thread Keary Suska
The retain count is incremented with A -retain message is sent to. It is possible, and not uncommon, that the retain count of an object may never increase or decrease, as is the case for singletons. Such an increase or decrease should be irrelevant to you in most cases. HTH, Keary Suska

Re: [NSObject setValue:forUndefinedKey:] no longer requires explicit KVC notifications?

2009-08-07 Thread Keary Suska
, and in fact, the setter sequence should be automatically wrapped with the calls, as long as automatic notification is on. AFAIK, this has always been the case and hasn't changed recently. There may be more side effects than before, but I don't recall. HTH, Keary Suska Esoteritech, Inc

Re: Confused about NSPrintInfo margins

2009-07-10 Thread Keary Suska
a bug asking for better documentation on this. Yes, but a) only though. Perhaps you mean something else by b) but I can attest that in fact when you change the margins of an NSPrintInfo that any print job using that object will indeed use the specified margins. HTH, Keary Suska

Re: MVC....brief question

2009-07-07 Thread Keary Suska
. Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ 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: Problem with NSDecimalNumber truncating zeros

2009-07-06 Thread Keary Suska
, preferably the same for both numbers. Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: User interface validation doesn't work, right?

2009-07-03 Thread Keary Suska
On Jul 2, 2009, at 11:52 AM, Bill Cheeseman wrote: On Jul 2, 2009, at 12:24 PM, Keary Suska wrote: Because the two protocols in question are formal protocols, the @interface declaration must specify conformance. If it doesn't, then no assumption of conformance should be made. Pure

Re: User interface validation doesn't work, right?

2009-07-02 Thread Keary Suska
declaration must specify conformance. If it doesn't, then no assumption of conformance should be made. Pure and simple. Also, protocol conformance is not inheritable in Objective-C. Therefore, neither NSControl, nor NSButton, conform to the NSValidatedUserInterface protocol. Keary Suska

Re: NSObjectController, content outlet and content object question

2009-07-01 Thread Keary Suska
are only one way to connect objects, such as M-C or V-C, but are not themselves an implementation of MVC. Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: Basic KVO question

2009-07-01 Thread Keary Suska
ever be fixed. In your particular case, it doesn't matter, as the value will have been changed before you receive the observer message. Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa

Re: User interface validation doesn't work, right?

2009-07-01 Thread Keary Suska
for myself what the document claims already happens -- or I have to observe NSWindow's -NSWindowDidUpdateNotification. Right? Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev

Re: User interface validation doesn't work, right?

2009-07-01 Thread Keary Suska
of them support validation of this kind. Look at NSMenuItem, and you will see that it does, and that your validation method will always be called. Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing

Re: resizing table view programmatically

2009-06-25 Thread Keary Suska
that avoids resizing each individual view? Just resize the window, as long as the scrollview resize flags are set to resize with the window. That should be all there is to it. Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: NSArrayController's add: swaps entire content array when array is accessed via keypath

2009-06-25 Thread Keary Suska
example I would expect KVO notifications to be the same. Do you implement standard setkey accessors in your instance variable test? Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa

Re: NSViewController awakeFromNib and NSTableView numberOfRowsInTableView

2009-06-25 Thread Keary Suska
? There is no such guarantee for -awakeFromNib. You either need to set the value earlier, or call -reloadData on the table. Best, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev

Re: UndoManager for NSApplication

2009-06-16 Thread Keary Suska
on a window will automatically search up the responder chain for an undo manager, so it should automatically get the window's. Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev

Re: Bindings and nested preferences

2009-06-16 Thread Keary Suska
smart enough to deal with nested structures, so you have to provide your own intermediary. So, this last approach is really (AFAIK) the common pattern for dealing with nested structures on user defaults. Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: NSOutlineView and tags...

2009-06-07 Thread Keary Suska
value are you setting? How are you checking the tag (show code)? I haven't heard or experienced any issues with NSOutlineView and tags, but if you have a reducible/reproducible case, you can file a bug. Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: Searching in NSArray

2009-06-05 Thread Keary Suska
-filteredArrayUsingPredicate:. Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Re: KVO and master-detail NSTableViews

2009-06-04 Thread Keary Suska
-DontLinkElementID_24 in particular the contentObject binding. RightTVController contentObject -- LeftTVController.selection.array_key_path LeftTVController contentObject --- PopUpController.selection.array_key_path Keary Suska Esoteritech, Inc. Demystifying technology for your home

Re: NSMutableURLRequest weirdness!

2009-06-04 Thread Keary Suska
-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/cocoa-dev%40esoteritech.com This email sent to cocoa-...@esoteritech.com Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: Image (or view ?) not scaling with window

2009-06-03 Thread Keary Suska
in the window view. My initialization code for the GUI elements of that window is below. Is there a flag I am missing somewhere in this, or do I need to handle view and image resize updates in another routine ? What happens when you set image scaling for the NSImageView? Keary Suska Esoteritech

Re: Detecting when fetch: finishes

2009-06-03 Thread Keary Suska
know that is more work than it is worth. Better to do the fetch yourself. Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Detecting when fetch: finishes

2009-06-03 Thread Keary Suska
it harder to do some custom things after it finishes. There isn't any way that I know that is more work than it is worth. Better to do the fetch yourself. Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev

Re: NSXMLParser - howto resolve entities defined in DTD

2009-06-01 Thread Keary Suska
for me? somehow... :) The companion document to NSXMLParser, Event-Driven XML Programming Guide for Cocoa, tells you what you need to do to resolve external entities. Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: NSXMLParser - howto resolve entities defined in DTD

2009-06-01 Thread Keary Suska
the declaration as it appears in the DTD (as NSData). I believe that NSXMLDocument may provide the functionality that you want, so you might want to look down that route. Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: NSXMLParser - howto resolve entities defined in DTD

2009-06-01 Thread Keary Suska
On Jun 1, 2009, at 4:03 PM, Keary Suska wrote: All external entities must be declared in the core XML. If they aren't, your XML is not well-formed. Correction, this would not be the case for declarations in a DTD, which are part of the external subset, so the first delegate message

Re: NSToolbar: notification of change?

2009-06-01 Thread Keary Suska
, but at least it is relatively lightweight. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: Cocoa Bindings and Dependent Keys question

2009-05-31 Thread Keary Suska
: send willchange/ didchange for the ac3ContentArray key? - (NSArray*) ac3ContentArray { /* Do stuff using -ac1Selection and -ac2Selection */ } @end Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev

Re: Core data, bindings and multiple view NIB

2009-05-28 Thread Keary Suska
, but I don't see how it would change having multiple repeated bindings. In fact, it adds a useless layer onto the problem. On 27.5.2009, at 22:43, Keary Suska wrote: On May 27, 2009, at 12:30 AM, Tomaž Kragelj wrote: GroupItemsController: - managed object context

Re: Core data, bindings and multiple view NIB

2009-05-27 Thread Keary Suska
Application.delegate.GroupController.selection.items (the last key os whatever relationship you need to use)? Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Core data, bindings and multiple view NIBs

2009-05-26 Thread Keary Suska
relation was not set... I'm sure I'm missing something, can someone point me to a proper direction? How are you binding the item array controller? It has to be bound to the group list array controller or to a property of the app delegate that depends on its selection. Keary Suska Esoteritech

Re: NSURLConnection set to cache

2009-05-18 Thread Keary Suska
, the cache is always validated in these cases, so there will always be some latency. Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Special requirements for the window param of NSAlert beginSheetModalForWindow?

2009-05-14 Thread Keary Suska
. In fact, the 'do you want to replace?' question is displayed in a sheet that appears on top of the save panel sheet. Yes, but the docs are clear that stacked or nested sheets are not supported, and violate HIG. It also doesn't work well if you try to force it. Best, Keary Suska

Re: [Newbie] Binding an NSArrayController with/without NSObjectController

2009-05-14 Thread Keary Suska
the latter is for binding to an array of objects. Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: Hide/Show Password

2009-05-14 Thread Keary Suska
but I am not having any luck. A tabless/borderless NSTabView? Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: [Newbie] Binding an NSArrayController with/without NSObjectController

2009-05-14 Thread Keary Suska
, but NSObjectController does have its uses. Best. Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: NSTextView delegate methods in NSTextView subclass.

2009-05-06 Thread Keary Suska
particularly interested in is -controlTextDidChange; Any delegate method that takes an NSNotification as its sole argument is just a notification. Check the documentation for the notification name and simply observe for the notification. HTH, Keary Suska Esoteritech, Inc. Demystifying technology

Re: NSXMLParser frees itself on error?

2009-05-04 Thread Keary Suska
in -parser:parseErrorOccurred:, call it only from parserDidEndDocument:. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: Crashing resetting or releasing an NSManagedObjectContext

2009-05-04 Thread Keary Suska
. Probably false, unless there is missing code that violates the rule. In any case, this issue is likely irrelevant based on when the crash occurs and for what object(s). Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: Crashing resetting or releasing an NSManagedObjectContext

2009-05-04 Thread Keary Suska
and never release or autorelease it, but that's causing memory leaks! Is there a good example anywhere of how to set up and tear down a Core Data document correctly? Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: Crashing resetting or releasing an NSManagedObjectContext

2009-04-30 Thread Keary Suska
://lists.apple.com/mailman/options/cocoa-dev/cocoa-dev%40esoteritech.com This email sent to cocoa-...@esoteritech.com Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: Crashing resetting or releasing an NSManagedObjectContext

2009-04-29 Thread Keary Suska
calls (-reset etc) are unnecessary. Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Group Identity Programming

2009-04-29 Thread Keary Suska
digging into the new user management system (man dscl), or NSTask to the id utility (man id). HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Group Identity Programming

2009-04-28 Thread Keary Suska
? There is no reason to hang on NSLog if for curGroupID, as it is really juts an unsigned int. What is the NSLog code you are using? Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev

Re: NSArrayController: Objects with empty strings

2009-04-28 Thread Keary Suska
an empty string for a key in conjunction with an NSArrayController. What would be the key path for an empty string? Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: NSArrayController: Objects with empty strings

2009-04-28 Thread Keary Suska
On Apr 28, 2009, at 1:39 PM, Alexander Spohr wrote: Am 28.04.2009 um 21:22 schrieb Keary Suska: NSMutableDictionary *theDicRow = [NSMutableDictionary dictionaryWithObjectsAndKeys: @Text A, @colA, @, @colB, nil ]; I am not surprised to see this behavior, for various

Re: NSTextField notification if selection changed

2009-04-27 Thread Keary Suska
observe its NSTextViewDidChangeSelectionNotification. Best, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: problems with live resize of NSTextView

2009-04-25 Thread Keary Suska
coming from the view. See the NSView documentation for how to use it. Best, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: undoMenuTitleForUndoActionName

2009-04-25 Thread Keary Suska
be rather awkward grammar in some languages, but it would be a lot easier. Otherwise, IIRC, all controls will use the Window's undo manager, so if you have the window delegate implement - windowWillReturnUndoManager:, you can force the use of your subclass. Best, Keary Suska Esoteritech, Inc

Re: problems with live resize of NSTextView

2009-04-25 Thread Keary Suska
On Apr 25, 2009, at 12:05 PM, Stuart Malin wrote: On Apr 25, 2009, at 5:08 AM, Keary Suska wrote: On Apr 24, 2009, at 3:06 PM, Stuart Malin wrote: I have an NSTextView in a custom view, it is set to resize with the containing view only in the horizontal dimension. When I resize

Re: Bindings making NSNumberFormatter strange

2009-04-23 Thread Keary Suska
are describing here. Did you check continuously updates value in the binding? Best, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Bindings making NSNumberFormatter strange

2009-04-23 Thread Keary Suska
a general remark about difficulties when using bindings with formatters? Thx, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Bindings making NSNumberFormatter strange

2009-04-22 Thread Keary Suska
that offers some of this behavior. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Select Object in NSDictionaryController

2009-04-20 Thread Keary Suska
code!). It also helps to mention what you expect to happen, and what is actually happening differently than your expectation. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa

Re: Select Object in NSDictionaryController

2009-04-20 Thread Keary Suska
really just do the same thing. Best, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Core Data Fetches + Transient Properties + NSPredicateEditor = Sadness

2009-04-17 Thread Keary Suska
predicate with subpredicates (sub-rows). Either that or use the BETWEEN operator. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: C: treated as a path component

2009-04-15 Thread Keary Suska
will probably need to parse the path names yourself. Look at one of the regex libraries for easy parsing. Carbon is not dead, it just smells funny. Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing

Re: Programatically creating NSMenu?

2009-04-08 Thread Keary Suska
-without-a-nib-part-1/ Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ 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

Re: Programatically creating NSMenu?

2009-04-08 Thread Keary Suska
are seeing. On Wed, Apr 8, 2009 at 9:44 PM, Keary Suska cocoa- d...@esoteritech.com wrote: On Apr 8, 2009, at 7:13 AM, Daqi Pei wrote: I've been trying to create a Cocoa GUI application without IB. Everything works fine except for the NSMenu. After digging over the internet I found

Re: SQLite and Unicode

2009-04-07 Thread Keary Suska
translate the C string to NSString using -stringWithCString:encoding:), are the characters still mangled? HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Auto Resize Views Issues

2009-04-07 Thread Keary Suska
, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ 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: SQLite and Unicode

2009-04-07 Thread Keary Suska
On Apr 7, 2009, at 10:39 AM, Тимофей Даньшин wrote: On Apr 7, 2009, at 8:14 PM, Keary Suska wrote: Are you properly encoding your C strings with -cStringUsingEncoding:? Yes, I think so. At present, I am using the -UTF8String method, but I also tried the - cStringUsingEncoding: to no avail

Re: SQLite and Unicode

2009-04-07 Thread Keary Suska
terminator (?! or linebreak). And i do that by using the - characterAtIndex: method. And the thing is that that method returns wrong characters if it deals with unicode ones. Thanks Keary Suska for pointing that out to me. I will now have to find another unicode-safe way to split

Re: Bindings and MenuItems

2009-04-01 Thread Keary Suska
binding) or target-action fails entirely. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: Bindings and MenuItems

2009-04-01 Thread Keary Suska
with an NSButton, and binding didn't work for me. There is no reason to suspect that the binding wouldn't work as advertised. Anyway, I suppose you have verified that the correct object is being set when the binding is established (and/or when the bound property changes)? Best, Keary Suska

Re: Delayed Undo Problem

2009-03-30 Thread Keary Suska
as to how this can be done? This FAQ might help: http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdFAQ.html#/ /apple_ref/doc/uid/TP40001802-244036 Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: Porting BASIC text mangling app to Objective-C

2009-03-26 Thread Keary Suska
wouldn't bother yet and just look at NSString's -initWithContentsOfFile:encoding:error: and - writeToFile:atomically:encoding:error: and the NSScanner class. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa

Re: Overriding -dealloc on any object

2009-03-25 Thread Keary Suska
these bridges, but it seems saner to me to maintain your own set of manager objects that then control native Cocoa objects. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev

Re: Implementing a many-to-many (reflexive) relationship using bindings and an NSTableView

2009-03-25 Thread Keary Suska
is a common method. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: NSLevelIndicator Bindings Crash

2009-03-24 Thread Keary Suska
after you change it? Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Re: NSSegmentedControl send action only from the selected segment

2009-03-24 Thread Keary Suska
this assumption? Note that the segment control would have sent your action method if you didn't get the exception first. Selecting the currently selected segment works because you are not changing the bound value, which is precipitating the exception. HTH, Keary Suska Esoteritech, Inc. Demystifying

Re: Key path for values in Shared User Defaults?

2009-03-24 Thread Keary Suska
to keyPathsForValuesAffectingPreview. I think that is supposed to work... HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: How to draw text with expanded inter-character spacing

2009-03-23 Thread Keary Suska
, or scrap the text view do your own thing (which is likely what Word is doing). HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: NSLevelIndicator Bindings Crash

2009-03-23 Thread Keary Suska
a double for its value. Which should I set it to in the core data model? Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Is it a Value or an Object ?

2009-03-21 Thread Keary Suska
to the receiver using setObject:forKey:, unless value is nil in which case the method instead attempts to remove key using removeObjectForKey:. Best, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev

Re: Bindings: which object+property is being edited?

2009-03-17 Thread Keary Suska
being edited. If you can get the view, you can inspect its bindings, but that seems a rather roundabout way to do something that might have a smarter approach. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: How to create an NSDecimal?

2009-03-15 Thread Keary Suska
On Mar 14, 2009, at 6:32 PM, Michael Ash wrote: On Sat, Mar 14, 2009 at 6:55 PM, Keary Suska cocoa-...@esoteritech.com wrote: On Mar 14, 2009, at 2:35 PM, Ashley Clark wrote: I don't see NSDecimalFromString() in any of the docs or header files, only NSDecimalString() to create strings

Re: NSProgressIndicator's setUsesThreadedAnimation only works sometimes?

2009-03-14 Thread Keary Suska
behavior but I need to block the UI. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: How to create an NSDecimal?

2009-03-14 Thread Keary Suska
: You can also create NSDecimals using NSDecimalFromString(). --Luca C. 2009/3/14 Ashley Clark acl...@ghoti.org You can get an NSDecimal structure from any NSNumber or NSDecimalNumber object by sending it the -decimalValue message. As far as I know that's the only way to create one. Keary

Re: Binding to selection of NSArrayController manually

2009-03-13 Thread Keary Suska
are binding through selection. Anyway, have you verified that the ArrayController variable is what you expect it to be at the point that bind: is called? HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev

Re: NSObjectController selection - now you see it, now you don't

2009-03-08 Thread Keary Suska
loop to see if this is the case. It seems to me that there is no need for you to use -selectedObjects when there will always be a 1:1 relationship between the controller content and the selected object. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: NSObjectController selection - now you see it, now you don't

2009-03-08 Thread Keary Suska
the runloop like this, so caveat programmor. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: Can an object observe itself?

2009-03-07 Thread Keary Suska
object's -init method, after invoking -init on the superclass: The main issue is that you have to remove observation before deallocating. Otherwise an exception will be raised (Leopard) or you will crash (Tiger and earlier). HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your

Re: NSString leak or RedHerring again?

2009-03-05 Thread Keary Suska
*)sqlite3_column_text(statement, 0)]]; [aDict setValue:subtypeArray forKey: [NSString stringWithUTF8String: (char *)sqlite3_column_text(statement, 2)]]; } If subtypeArray is mutable, as it appears to be, the last statement is useless and potentially dangerous. Best, Keary Suska Esoteritech

Bindings: Why Doesn't Key Value validation Update The UI?

2009-02-16 Thread Keary Suska
: set a transformer (that is really acting like a validator) or trick bindings with a change-value-for-key notice triggered using performSelector:afterDelay:. Anyone have any better ideas? TIA, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: NSTableView Popup Column issue

2009-02-06 Thread Keary Suska
Controller Key: arrangedObjects Model Key path: relYarn And here you do it. Selected Object needs to be bound to something that returns a single value. arrangedObjects returns an array. Perhaps you want selection? HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: becomeFirstResponder override issue

2009-02-02 Thread Keary Suska
myArrayController is nil when - becomeFirstResponder is called. The NSLog below won't tell you that, so I wasn't sure if you specifically checked for nil. On 2-Feb-09, at 7:40 AM, Keary Suska wrote: On Feb 1, 2009, at 10:32 PM, Chris Anderson wrote: I've created a subclass of NSDatePicker to catch when

Re: Disabling sorting in a programatically generated table

2009-01-31 Thread Keary Suska
On Jan 30, 2009, at 10:39 AM, Ken Tozier wrote: On Jan 30, 2009, at 10:52 AM, Keary Suska wrote: When you call -bind: do you pass NSCreatesSortDescriptorBindingOption NO? I'm not calling bind, because the array controller and array are created inside the same function, so it just

Re: Disabling sorting in a programatically generated table

2009-01-30 Thread Keary Suska
pass NSCreatesSortDescriptorBindingOption NO? HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: NSFileHandle or a better way?

2009-01-30 Thread Keary Suska
immensely. Notwithstanding, how do you recover if your app crashes after you truncate the file? HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: sqlite iphone question....

2009-01-23 Thread Keary Suska
the database and the data is in there?! Working with files in the app bundle like this may be a non-no. At least, it is for Mac OS X, and the emulator might have this issue. To know for sure, put the database file into the sandbox and see if it behaves better there. HTH, Keary Suska

Re: Encryption: Simplest method to encrypt a SQLite DB file...? {iPhone}

2009-01-23 Thread Keary Suska
. Not sure how difficult those archives are to crack, or whether any attempt has even been made to prevent it. Best, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev

Re: Search Fields, Array Controllers and Multiple NIBs

2009-01-20 Thread Keary Suska
that is a property bound from the NSArrayController in the nib. Or, if you already have outlets to the NSArrayController, you can just call - setFilterPredicate:. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa

<    1   2   3   4   5   6   7   8   >