Re: completely messed up with bindings...

2009-01-15 Thread Keary Suska
-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 do not post admin requests or moderator

Re: Filtering NSPopUpButtonCell when clicking on it

2009-01-15 Thread Keary Suska
/selected? I assume that would happen before the popup is opened. And probably a saner approach. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: NIB's owner doesn't get released because of NSArrayController

2009-01-15 Thread Keary Suska
immediately, everything should release at the next run loop cycle. Alternatively, and I think this is a better way to go, don't bind anything to file's owner when you are loading nibs in this way. Instead, use outlets and/or intermediary controllers. Your sanity will thank you. HTH, Keary Suska

Re: completely messed up with bindings...

2009-01-15 Thread Keary Suska
to create an accessor for it. On Thu, Jan 15, 2009 at 7:19 PM, Keary Suska cocoa-...@esoteritech.com wrote: On Jan 15, 2009, at 1:02 AM, Vitaly Ovchinnikov wrote: One question was solved. I found a correct keypath to bind my document on selected filter. It works with selection.self

Re: NIB's owner doesn't get released because of NSArrayController

2009-01-15 Thread Keary Suska
, so you can't do it there. The window controller can't have outlets to those objects, so... On Thu, Jan 15, 2009 at 7:40 PM, Keary Suska cocoa-...@esoteritech.com wrote: On Jan 15, 2009, at 9:04 AM, Vitaly Ovchinnikov wrote: I'll try to describe it again. I have NIB, NSObject-based owner

Re: KVC error from bound SortDescriptor

2009-01-14 Thread Keary Suska
tries to change your model's bound property. You have two choice: 1) don't allow the table to be re- sorted; or 2) make nameSortDescriptors key value coding compliant. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: runModalForWindow, best solution to modal session

2009-01-14 Thread Keary Suska
-window, which forces the nib to load). 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: KVC error from bound SortDescriptor

2009-01-14 Thread Keary Suska
On Jan 14, 2009, at 11:10 AM, Quincey Morris wrote: On Jan 14, 2009, at 08:35, Keary Suska wrote: On Jan 14, 2009, at 4:54 AM, Steven Hamilton wrote: I have a customer WindowController class and within it I have a method that returns a NSSortDescriptor. Like this; -(NSArray

Re: addObserver problem with protocols

2009-01-14 Thread Keary Suska
to solve it ? If you search the archives you will find a few discussions on this subject. I don't remember the reason exactly, but you just can't use that syntax. You can use an informal protocol instead, but you won't get the compile-time checks that protocol gives you. HTH, Keary Suska

Re: NSTextField input validation

2009-01-13 Thread Keary Suska
to one of your controllers? The whole - setUpFieldEditorAttributes seems a bit kludgey to me (and possibly prone to errors). Also, I would use an NSCharacterSet (-characterIsMember:) instead of NSFormatter or NSSCanner. Much more lightweight. HTH, Keary Suska Esoteritech, Inc

Re: debugging hard-to-locate error in NSApplication delegate

2009-01-12 Thread Keary Suska
of the objects I use in this way implement NSCoding, and maybe that matters. All other non-view objects do instantiate with initWithCoder:, as I understand, just not generic custom objects. Best, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: Asyncronous message handling

2009-01-07 Thread Keary Suska
. But there is nothing wrong, IMHO, with only one object ever listening for a specific notification (one-to-one). HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Repost Programmaric NSTextField not editable

2009-01-06 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: Asyncronous message handling

2009-01-06 Thread Keary Suska
? Object Delegation Pattern http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/CommunicatingWithObjects/chapter_6_section_4.html#//apple_ref/doc/uid/TP40002974-CH7-SW26 ? Key-Value Observation? HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home

Re: Which language to get started with cocoa development?

2009-01-05 Thread Keary Suska
at core data and core animations. Are these also available for ruby and python? - What about Mono/Cocoa#? Looks like Mono is not an good option, if I want to distribute my app as small download via the web. Or am I wrong? HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your

Re: Modal Session not stopping main thread.

2008-12-25 Thread Keary Suska
synchronous behavior you will probably have to use - runModalForWindow:. 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: Listening for changes

2008-12-19 Thread Keary Suska
all of the individual calls into one call. 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: -[NSURLConnection cancel] doesn't release its delegate?

2008-12-18 Thread Keary Suska
NSURLConnection is releasing the delegate using a performSelector:withObject:afterDelay: or similar method. Running the run loop as you remark in the code is the only way I know of to make sure the delegate is released before the thread exits. HTH, Keary Suska Esoteritech, Inc. Demystifying

Re: getObjects:andKeys

2008-12-17 Thread Keary Suska
On Dec 17, 2008, at 6:36 AM, Jordon Hirshon wrote: Can someone tell me where I might see an example of this method? I don't know of any specific example. Perhaps if you explain what about the method call you aren't clear on and we can offer explanations. Best, Keary Suska Esoteritech

Re: UNIX signals

2008-12-17 Thread Keary Suska
process is sent a SIGQUIT. It would be extremely bad for launchd to send a SIGKILL as a matter of course. You might as well just shut your computer down by turning off the power, if that was the case. Best, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: Programatically creating windows

2008-12-15 Thread Keary Suska
- makeKeyAndOrderFront:. 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 the moderators

Re: NSApp beginSheet:NSWindow notification of sheet opening?

2008-12-12 Thread Keary Suska
NSWindowWillBeginSheetNotification on the NSWindow that will display the sheet? 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: What does 'DO' mean?

2008-12-08 Thread Keary Suska
On Dec 5, 2008, at 3:31 PM, mark wrote: What does 'DO' stand for? Probably Distributed Objects. Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: One-way communication from NSPanel in MainMenu.xib to Custom View

2008-12-08 Thread Keary Suska
. Since it looks like you have a distinct parent-child relationship, the panel controller can own the projected controller and hence your bridge. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev

Re: NSTimer

2008-12-04 Thread Keary Suska
-fire directly right after construction to get 0s fire. 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: Binding/KVO question

2008-12-03 Thread Keary Suska
! Yes. Since they are in the same nib, why not set an outlet to AppController? 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: Binding/KVO question

2008-12-03 Thread Keary Suska
consideration. Anyway, do you declare a forward class (using @class directive) in each header file? If you don't do this or #import, the compiler won't know what classes you are referring to, and you will get the message you mention. On 3-Dec-08, at 5:26 PM, Keary Suska wrote: On Dec 3, 2008, at 2

Re: Crash when closing window from the menu

2008-12-01 Thread Keary Suska
(IMHO). 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 the moderators at cocoa-dev

Re: [Reposted] Document based resource strategy

2008-11-26 Thread Keary Suska
the document-specific GUI. Again, IMHO, I think NSDocument or it's NSWindowController should always own the document GUI nib. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev

Re: [Reposted] Document based resource strategy

2008-11-25 Thread Keary Suska
/ . These I reference are in /AppKit/ . 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: Trouble with openFileWithoutUI

2008-11-17 Thread Keary Suska
the application delegate. NSApp is a global variable that always represents the shared application object (same as [NSApplication sharedApplication] ). [[NSApp delegate] application:self openFileWithoutUI: totalFile]; HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home

Re: Core Data + Unidirectional Relationships

2008-11-12 Thread Keary Suska
targetPorts, the inverse would be a to-one called targetPipe 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: Apple's NSPersistentDocument Tutorial and MOCs

2008-11-12 Thread Keary Suska
. Works like a charm for me, so far at least. 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: Any way to detect firstResponder changes?

2008-11-11 Thread Keary Suska
:, and/or -makeFirstResponder:. 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 the moderators

Re: Modal Dialog Issue

2008-11-03 Thread Keary Suska
by calling another method with peformSelector:...afterDelay. m. The initial behavior could also be the likely result of the visible at launch option checked, which the default for all windows created in IB. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home

Core Data Questions--Relationships, UUIDs, and Dirty States

2008-10-27 Thread Keary Suska
, and when the context has saved, but what about when the context has been rolled back or changes undo-ed? 4. Does anyone have recommendations on how I can maintain the dirty state of a single NSManagedObject? I don't figure there is anything built into CD for this. TIA, Keary Suska Esoteritech

Re: Core Data Questions--Relationships, UUIDs, and Dirty States

2008-10-27 Thread Keary Suska
application? Non-doc based. Basically I just want the documentEdited feature I describe above. I really just need to know on a per-MO basis, but if that is not practical, I can probably work with just knowing the MOC's state. Thanks, Keary Suska Esoteritech, Inc. Demystifying technology

Re: NSPredicate predicateWithFormat:

2008-10-24 Thread Keary Suska
code. On 23-Oct-08, at 11:33 PM, Keary Suska wrote: On Oct 23, 2008, at 11:05 AM, chaitanya pandit wrote: NSArray *namesArray = [NSArray arrayWithObjects:@Tom , @Matt , @Joe, nil]; NSPredicate *predicate = [NSPredicate predicateWithFormat: @Name IN %@, namesArray]; NSMutableArray

Re: NSPredicate predicateWithFormat:

2008-10-23 Thread Keary Suska
re-checking the retain count. Anyway, you shouldn't rely on retain count for memory-related issues, as you now see. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev

Re: Increment object property

2008-10-22 Thread Keary Suska
arrangedObjects] count]]. 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: table bindings, value transformer per row?

2008-10-16 Thread Keary Suska
that it is much slower. 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 the moderators at cocoa

Re: NSUndoManager [EMAIL PROTECTED] up Core Data database

2008-10-08 Thread Keary Suska
/documentation/Cocoa/Conceptual/CoreData/Articles/cdMultiThreading.html#//apple_ref/doc/uid/TP40003385 section of the Core Data Programming Guide? In other sections, the guide also covers handling undo. If you have read it, you may want to do so again, as it has your answer. HTH, Keary Suska

Re: Swapping IB-created views and keeping IBOutlets hooked up

2008-09-16 Thread Keary Suska
button1 to now point to View B. Is this something that can be done automatically? No. The easiest alternative is to have accessors for the outlets, and set them on swap. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: NSPredicate BETWEEN inclusive or exclusive?

2008-09-11 Thread Keary Suska
the code excerpt in that section. 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: Rounding very small numbers.

2008-09-11 Thread Keary Suska
to decimalNumberHandler... Yes, because it doesn't. The method is decimalNumberHandlerWithRoundingMode:scale:raiseOnExactness:raiseOnOverflow: raiseOnUnderflow:raiseOnDivideByZero: . There is no shortcut method. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: NSArrayController fetchPredicate behaving badly

2008-09-11 Thread Keary Suska
not? NSArrayController responds to -fetchPredicate. Shouldn't be any problem there. Just po [arraycontroller fetchPredicate]. Best, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev

Re: NSTableView Protocol Help!

2008-09-04 Thread Keary Suska
AppController class. 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 the moderators

Re: NSDateFormatter and Display Value bindings

2008-09-02 Thread Keary Suska
, as it is still just an NSTextField. Note, however, that the formatter must apply to the *whole* field. You can't apply a formatter to part of a field (unless it is your own formatter, programmed to do so). HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: Problem with NSUserDefaultsController

2008-09-02 Thread Keary Suska
with this encapsulation. 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 the moderators at cocoa

Re: Problem with NSUserDefaultsController

2008-09-02 Thread Keary Suska
on occasion (when explicitly freed). I would assert that generally, memory will have a longer persistence time than CPU usage--CPU spikes and falls often, but memory tends to stay constant (or gradually increase), generally speaking. It all boils down to user experience, in any case. Best, Keary

Re: Declaring multidimensional arrays in obj-c

2008-09-02 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: Declaring multidimensional arrays in obj-c

2008-09-02 Thread Keary Suska
No one has suggested that there aren't functional equivalents, simply that it is not possible to declare a variable length array as an object ivar, which is what the OP was (directly) asking. On 02 Sep 2008, at 22:49, Keary Suska wrote: 9/2/08 2:25 PM, also sprach [EMAIL PROTECTED]: I'm having

Re: Problem with NSUserDefaultsController

2008-08-31 Thread Keary Suska
. The -save: method is unintuitive in name. It does not, as you may think, save changes to disk. It simply commits any changes to the NSUserDefaults object. It's a no-op if appliesImmediately is YES. The only way to force a save is to call -synchronize on NSUserDefaults. Best, Keary Suska Esoteritech, Inc

Re: (Newb) Populate NSMutableDictioanry with NSArray

2008-08-31 Thread Keary Suska
NSArray implements, such as -objectAtIndex:, on the myCollection object. 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: Sending a GET or POST HTTP request with Cocoa

2008-08-31 Thread Keary Suska
://developer.apple.com/documentation/Cocoa/Conceptual/URLLoadingSystem/U RLLoadingSystem.html 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: mark added object in NSArrayController as dirty?

2008-08-28 Thread Keary Suska
is intercepting all actions that would move away from the displayed record, and manually call validation. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: mark added object in NSArrayController as dirty?

2008-08-28 Thread Keary Suska
-trigger formatting 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: setNilValueForKey: not called when Number Formatter is nil

2008-08-17 Thread Keary Suska
/uid/TP40002149-186285 If a nil value is allowed, you should let it pass your formatter's validation. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: Window 'close' action fails

2008-08-15 Thread Keary Suska
]]; return self; } 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: Is this a bug, or am I hacking?

2008-08-14 Thread Keary Suska
object in each case. Or do I misunderstand? 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: addObserver:

2008-08-11 Thread Keary Suska
changed). I.e. any time the array object itself is changed to another array object, *not* when the elements of the array are changed. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa

Re: Accessing member variables from another thread crashes

2008-08-10 Thread Keary Suska
. 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 the moderators at cocoa-dev-admins

Re: KVC beginners question

2008-08-10 Thread Keary Suska
/KeyValueCoding/Con cepts/ArrayOperators.html#//apple_ref/doc/uid/20002176-184206 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: 2 outline views, selection changes

2008-08-02 Thread Keary Suska
in the above). Alternatively, you could implement the clear operation in an action method invoked by the OV (don't forget to check -clickedRow). HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing

Re: Non-editable TableView and the Evil NSEditorBinder

2008-08-02 Thread Keary Suska
aren't always the best answer to every MVC question, they save a lot of code and effort. And if you ever want to get into Core Data, you will find bindings invaluable. I would recommend slogging ahead as best you can... HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home

Re: pointers in objective-c?

2008-08-02 Thread Keary Suska
pointers to still *the one and only* object This statement could be misleading, if only for semantic reasons. The pointers in this example *are* the same, i.e. the address to which each variable points (also the variable's value) is the same. Best, Keary Suska Esoteritech, Inc. Demystifying technology

Re: Binding an NSMenu to an NSArrayController

2008-07-31 Thread Keary Suska
://developer.apple.com/documentation/Cocoa/Reference/CocoaBindingsRef/C ocoaBindingsRef.html, and I believe that list is supposed to be comprehensive. Best, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list

Re: Updating table rows with bindings

2008-07-31 Thread Keary Suska
--there may be situations, but IMHO this approach reveals a design flaw 99.99% of the time) 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

Re: CoreData Property access compiles, but fails at runtime

2008-07-19 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: NSMutableDictionary autorelease chrashes application

2008-07-18 Thread Keary Suska
are trying to access an object that has been released due to the normal handling of the autorelease pool. You will need to learn how to use the Xcode debugger to figure out your problem. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: NSMessagePort Invalidation

2008-07-17 Thread Keary Suska
or have I missed something? Are you using Distributed Objects? If not, my recollection is that you should be using NSMachPort instead. If you are using DO, I think Do is supposed to handle those types of communication issues. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home

Re: Sorting a to-many relationship property

2008-07-17 Thread Keary Suska
the latter (adding), as overriding the accessor would make it rather inefficient, and could effect performance. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

: Sorting a to-many relationship property

2008-07-17 Thread Keary Suska
Oop--forget about the accessor override bit. I forgot that to-many relationships are represented with NSSets. Sorry, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business -- Forwarded Message From: Keary Suska [EMAIL PROTECTED] Date: Thu, 17 Jul 2008 08:56:23

Re: Where's the best place for addObserver and removeObserver

2008-07-17 Thread Keary Suska
if not impossible in a nib-loaded situation, AFAIK. I believe that the bindings mechanism, however, has ways to deal with these issues in a nib-loaded situation (and generally as well). That might be an avenue to pursue. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: Inter-thread communications (live/deadlock?)

2008-07-16 Thread Keary Suska
already--watch for NSPortDidBecomeInvalidNotification notifications on both threads. See NSNotificationCenter class related docs for more info, if you aren't familiar. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: Struct, Object, or Dictionary?

2008-07-01 Thread Keary Suska
a lot for free (without code), including basic (but flexible) validation and undo support. 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

KVO Bug With Keypaths

2008-07-01 Thread Keary Suska
(in a KVO-compliant way). Is anyone aware of this, or is it just a limitation of KVO? TIA, 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: KVO Bug With Keypaths

2008-07-01 Thread Keary Suska
7/1/08 3:01 PM, also sprach [EMAIL PROTECTED]: On Tue, Jul 1, 2008 at 9:50 PM, Keary Suska [EMAIL PROTECTED] wrote: I thought I saw somewhere a bug in KVO where notifications aren't properly sent in certain situations when upper parts of the path are updated. E.g., I have a situation where

Re: KVO Bug With Keypaths

2008-07-01 Thread Keary Suska
. My initial tests seem to indicate some problem observing through relations/related, although I have NSController subclasses (using bindings) that don't seem to have any issues, although their key path starts at the object that own relations. Best, Keary Suska Esoteritech, Inc. Demystifying

Re: How to deal with a MenuItem with both a binded state property and an action method

2008-06-28 Thread Keary Suska
--you could use performSelector:withObject:afterDelay:to make the setMenuState call. 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: noob question regarding proxy object returned by -selection method of NSArrayController

2008-06-28 Thread Keary Suska
a bad idea. You can't guarantee the order unless, as you say, your controller knows too much about the view. You could use the index but use it on -arrangedObjects, however. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

[SOLVED] NSPopupButton Bindings-Related Issue

2008-06-28 Thread Keary Suska
For perpetuity, to do what I wanted I needed to bind selectedIndex to the controller's selectionIndex. I was avoiding this because it requires me to have an outlet to the controller for conditionally enabling/disabling popup items. Oh well. Best, Keary Suska Esoteritech, Inc. Demystifying

Re: List of Indexed Accessor Names for NSMutableArray

2008-06-28 Thread Keary Suska
/NSKeyValueCoding_Protocol/Reference/Reference.html 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: Why aren't my bindings firing?

2008-06-27 Thread Keary Suska
willChangeValueForKey/didChangeValueForKey in your setters. They are KVC-compliant as shown. Fix that, then see if the problem goes away. Best, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list

Re: How to deal with a MenuItem with both a binded state property and an action method

2008-06-27 Thread Keary Suska
, change the monitor value to reflect the correct state. IN any case, you don't say how the menuState property enters into the picture, vs the monitor property. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa

NSPopupButton Bindings-Related Issue

2008-06-27 Thread Keary Suska
automagically enable (that's bad too). Crazy, huh? Any ideas, anyone? 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: wrapping multiple IBOutlet objects for reuse

2008-06-24 Thread Keary Suska
drawing system (particularly views and subviews, and the coordinate system), at least. There may be more that I am not thinking of. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev

Re: Application Main window not appearing on application launch (updated)

2008-06-22 Thread Keary Suska
value. Start with this: http://lists.apple.com/archives/Cocoa-dev/2007/Mar/msg01478.html 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

Re: NSPanel should not close on command-W

2008-06-21 Thread Keary Suska
on the panel is enabled, users may expect that command-W will close it when it is made key. There may also be a HIG issue with this. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev

Re: NSPanel should not close on command-W

2008-06-21 Thread Keary Suska
, *if* the issue is that your panel always closes when your last document window is closed. If your panel is in the document's nib, it may be getting disposed of. The only way to stop that is to move the panel related objects to a separate nib. Best, Keary Suska Esoteritech, Inc. Demystifying

Re: Binding the enabled property of a NSMatrix instance to wether or not a multiple selection on a array controller is made.

2008-06-19 Thread Keary Suska
Selected Index binding, but it doesn't work I have tried checking/unchecking all different sorts of combinations, but nothing really helps. Any suggestions/ideas? Existing code/examples would be great too. Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: noob question regarding (programmatic) bindings and data type coercion

2008-06-17 Thread Keary Suska
. 4) Further, using floatValue does not cause the initial value of age (0) to be displayed (same result as with intValue), but using stringValue does (which matches use of value). Why? See above. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: How do I Allow empty attributes when parsing with XMLParseDataRef

2008-06-11 Thread Keary Suska
specify a value, does the parser not choke? I ask because, AFAIK, an empty attribute is legal, unless the attribute was declared as required. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list

Re: NSPopupButton Item to Create New Object

2008-06-08 Thread Keary Suska
object if it doesn't yet exist. Is this possible with NSPopupButton or should I just include a button to display a panel for adding the new item? Since the items in a popup are NSMenuItems, you should be able to set the action of an item... HTH, Keary Suska Esoteritech, Inc. Demystifying

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

2008-06-06 Thread Keary Suska
to the particular window in question? 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: NSWindow does not support utility styleMask 0x10 ???

2008-06-05 Thread Keary Suska
the posting guidelines sent recently, it is wise to search the archives before posting a question. 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

Re: ArrayController Out of Bounds

2008-06-04 Thread Keary Suska
will return -1 if the click was in the header, so there may be other code involved. 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: Alert Sheets hard wired in Interface Builder

2008-05-31 Thread Keary Suska
} [theSheet close]; } If you didn't create the sheet with +alertWithMessageText:defaultButton:alternateButton:otherButton:informativeT extWithFormat:, then you would not get that constant. Read the NSAlert API reference, especially -addButtonWithTitle: HTH, Keary Suska Esoteritech, Inc. Demystifying

Re: Filter Multidimensional Array?

2008-05-17 Thread Keary Suska
performing a -containsObject: on each array. 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: Multi-storage Core Data

2008-05-17 Thread Keary Suska
glue code for any interactions between Managed Object Contexts (MOCs), since each MOC is married to one storage. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev

<    2   3   4   5   6   7   8   >