Re: How to synchronize my MacOS-X application with Core-Data automatic Undo management?

2014-08-26 Thread Keary Suska
On Aug 26, 2014, at 11:39 AM, Keary Suska cocoa-...@esoteritech.com wrote: * When should I do this? before, or after my calls to CoreData? You would tend to register undo action in the order they need to be *undone*, but logically if you need to make changes in response to changes made

Re: How to synchronize my MacOS-X application with Core-Data automatic Undo management?

2014-08-24 Thread Keary Suska
controller's states. You can also use multiple managed object contexts with different undo managers, and reconcile them later. What you specifically need to do will determine the best approach. Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: NSPopupButton, bindings, and item state

2014-08-15 Thread Keary Suska
as much work as your glue code. So I wold say the best approaches are a 50/50 between bindings and glue. That is, you could use bindings for content, but manually handle state, or use bindings for state, and manually handle content. Doing both is probably an exercise in futility. Keary Suska

Re: NSPopupButton, bindings, and item state

2014-08-15 Thread Keary Suska
hook your delegate in on time, sure. I think that NSPopupButton keeps the same NSMenu instance throughout it's lifetime, but if not, the delegate approach won't work. Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: NSMenu in NSTableView column

2014-08-13 Thread Keary Suska
, which is a different animal altogether. Is your table view cell or view based? It makes a big difference... Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Mod (%) function in C/Objective-C?

2014-08-12 Thread Keary Suska
(). That definitely won't work when you need the true series. 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: NSMenu in NSTableView column

2014-08-12 Thread Keary Suska
an action on each menu item. 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: NSMenu in NSTableView column

2014-08-12 Thread Keary Suska
, SignalChannel, with name (for description, but we may not ant to use description for obvious reasons...) and channelID properties. I would then populate the NSPopupButtonCell with SignalChannel objects. This will abstract the model from the view, which is better form anyway. HTH, Keary Suska

Re: Mod (%) function in C/Objective-C?

2014-08-12 Thread Keary Suska
meant. Yes, that--I didn't realize that C99 fixed that as well. I just figured reasonable compilers handled it reasonably ;-) Although I thought there was still some issue with modulus implementations, but I don't recall exactly. Probably also old information. Keary Suska Esoteritech, Inc

Re: Mod (%) function in C/Objective-C?

2014-08-11 Thread Keary Suska
On Aug 11, 2014, at 2:52 PM, Dave d...@looktowindward.com wrote: On 10 Aug 2014, at 16:16, Keary Suska cocoa-...@esoteritech.com wrote: I don't think so, although I would expect a C lib somewhere to address it. Anyway, isn't easier to just always abs(x)%y? abs(x)%y Doesn’t give

Re: Mod (%) function in C/Objective-C?

2014-08-10 Thread Keary Suska
, although I would expect a C lib somewhere to address it. Anyway, isn't easier to just always abs(x)%y? Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: NSProgressIndicator (bar) still displays when stopped

2014-08-08 Thread Keary Suska
animation. If that works, that will be confirmation that the bug still stands... 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: NSProgressIndicator (bar) still displays when stopped

2014-08-08 Thread Keary Suska
On Aug 8, 2014, at 10:25 AM, Daryle Walker dary...@mac.com wrote: On Aug 8, 2014, at 9:58 AM, Keary Suska cocoa-...@esoteritech.com wrote: On Aug 7, 2014, at 10:23 PM, Daryle Walker dary...@mac.com wrote: have a bar-style NSProgressIndicator that has its “Display When Stopped” turned

Re: NSTextField Binding

2014-08-07 Thread Keary Suska
/ resolve this? Are you updating the property in a KVO-complianet manner? 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: Preventing empty NSTextFields that use NSNumberFormatter

2014-08-04 Thread Keary Suska
...? Yes, or subclass. If your backing property is a C primitive you could use setNilValueForKey to force nil to mean something. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev

Re: How to get the time zone of a parsed date/time string?

2014-07-30 Thread Keary Suska
tm that has the tm_zone member for time zone string. It might also have a tm_gmtoff member, which shows the UTF offset in seconds. As mentioned previously, you may not get a correct time zone for a GMT offset. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: Auto layout and scroll views on OS X

2014-07-22 Thread Keary Suska
-layout-for-documentview-in-nsscrollview.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

Re: Auto layout and scroll views on OS X

2014-07-22 Thread Keary Suska
On Jul 22, 2014, at 10:59 AM, Kyle Sluder k...@ksluder.com wrote: On Jul 22, 2014, at 7:13 AM, Keary Suska cocoa-...@esoteritech.com wrote: Based on the error it looks like a Mac OS X project, but if not, please always specify because there isn't complete feature parity with iOS

Re: having both cell based and view based outline views in one project

2014-07-12 Thread Keary Suska
will have some future-proofing. 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: Aligning baseline of NS controls

2014-07-10 Thread Keary Suska
). Is there a better way to do this? I imagine it's a problem faced before. Umm, Auto Layout? You can easily align elements by baseline... HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list

Re: Converting database to Core Data

2014-07-10 Thread Keary Suska
in the ReasonCode entity? It's a limitation of Core Data. The solution is to use an intermediary entity, similar to a many-to-many relationship implementation. I would highly recommend this, as one-way relationships are fragile and prone to error. HTH, Keary Suska Esoteritech, Inc. Demystifying

Re: Offsetting content of NSTable/NSOutlineView

2014-06-25 Thread Keary Suska
of the view. This is just a wild stab, but have you considered/tried using a custom header view? I believe NSTableView is smart enough to accommodate a larger header. Then the only issue is making the visual/size changes when scrolling happens. HTH, Keary Suska Esoteritech, Inc. Demystifying

Re: NSWindowController and designated initializer rules

2014-06-23 Thread Keary Suska
is that *every* initializer *should* call the designated initializer, and that the API follows this convention, unless documented otherwise... Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev

Re: Bindings setup with NSCollectionViews

2014-06-18 Thread Keary Suska
to update its represented 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 or moderator comments to the list. Contact

Re: Stupid bindings!%#$% :)

2014-06-09 Thread Keary Suska
it. For other types of validation, use key-value validation. 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: CoreData Question

2014-06-03 Thread Keary Suska
get the result array 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: Getters/Setters via Property/Synthesize...

2014-06-03 Thread Keary Suska
(@%@ Mass: %f, _simulationView, [_simulationView mass]); to make sure that it is not nil at the time you need it. Simply not being nil at initialization doesn't mean anything. Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

NSTextFieldCell Drawing Offset in NSTextView

2014-05-30 Thread Keary Suska
vaguely recall mention of this offset issue at some point but Ic an't seem to google any references to it. Any help is appreciated. TIA, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa

Re: NSPopover + Bindings + Validation = Weirdness

2014-05-27 Thread Keary Suska
On May 26, 2014, at 8:10 AM, Jonathan Mitchell wrote: On 26 May 2014, at 14:50, Keary Suska cocoa-...@esoteritech.com wrote: The bug is triggered when trying to display a sheet on a popover window, so even if I capture error presentation I would still have to present a modal alert

Re: NSPopover + Bindings + Validation = Weirdness

2014-05-26 Thread Keary Suska
On May 26, 2014, at 3:05 AM, Jonathan Mitchell wrote: On 26 May 2014, at 01:04, Keary Suska cocoa-...@esoteritech.com wrote: I am implementing an editing view in a popover, and discovered that validations messages will cause exceptions because AppKit is broken in that regard...anyway so

NSPopover + Bindings + Validation = Weirdness

2014-05-25 Thread Keary Suska
the responder chain to something that doesn't like it so beeps. That's all I can think of at the moment. Anyone had to contend with this? TIA, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa

Re: State Restoration with NSDocument architecture

2014-05-24 Thread Keary Suska
a state change. Lastly, although it may be obvious, the restore windows system setting must be turned on, or you have to use the option-quit method. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev

Re: kCGStatusWindowLevel

2014-05-20 Thread Keary Suska
. Is it the actual numeric value of the constant that you want? I would code against it, as it can easily change at any time without notice. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa

Re: kCGStatusWindowLevel

2014-05-20 Thread Keary Suska
, the full screen semantics are using the window layer as a hint to handle resizing. Just for grins, what happens when you send -toggleFullScreen: to your overlay? On May 20, 2014, at 10:59 AM, edward taffel etaf...@me.com wrote: On May 20, 2014, at 10:41 AM, Keary Suska cocoa

Just Seeing For myself (no message content)

2014-05-12 Thread Keary Suska
___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription:

Re: Corrent Syntax for Parameter Lists?

2014-04-28 Thread Keary Suska
a version of the method that takes a va_list argument, which is probably the more common approach. For instance, see NSLog() vs. NSLogv(). HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing

Re: Memory Leaks and ARC

2014-04-22 Thread Keary Suska
terminates. Is this correct behaviour? I understand that it is (or typically is). To get that behavior wrap the loop contents in an @autoreleasepool{}. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev

Re: ARC Retain Cycles

2014-04-21 Thread Keary Suska
projects. 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: NSTask: program launching another program, potential problem with path: how to do?

2014-04-10 Thread Keary Suska
is that the invocation of myauxprogram in myprogram is a relative path that relies on the PATH environment variable that is properly set by the shell, but you don't set in NSTask. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: NSButton/NSBox interaction

2014-04-10 Thread Keary Suska
that is not the case--at least I am unable to replicate it. Or do you mean multiple radio-type NSButtonCells in a single view? That would make sense but only NSMatrix has that functionality built-in, AFAIK. I suspect this is really a code or binding issue. Keary Suska Esoteritech, Inc

Re: NSTask: program launching another program, potential problem with path: how to do?

2014-04-10 Thread Keary Suska
. Le Jeudi 10 avril 2014 16h32, Jens Alfke j...@mooseyard.com a écrit : On Apr 10, 2014, at 6:23 AM, Keary Suska cocoa-...@esoteritech.com wrote: This is more likely a shell scripting issue, rather than am NSTask issue, unless sandboxing is somehow interfering, and you are obscuring

Re: NSTask: program launching another program, potential problem with path: how to do?

2014-04-10 Thread Keary Suska
in environments that you don't control (i.e. end-users). There also may be other variables needed... Envoyé depuis Yahoo Mail pour iPad From: Keary Suska cocoa-...@esoteritech.com; To: Colas B colasj...@yahoo.fr; Cc: Cocoa-Dev (Apple) cocoa-dev@lists.apple.com; Subject: Re: NSTask: program launching

NSSet + NSUndoManager / Core Data = ?

2014-04-04 Thread Keary Suska
then I need to look at Core Data implementation (i.e. custom to-many accessors): is Core Data smart enough to do these tests itself for undo support, or should I do these tests myself before calling willchange/didchange? TIA, Keary Suska Esoteritech, Inc. Demystifying technology for your home

Re: what do I need the NSArrayController for?

2014-04-02 Thread Keary Suska
and your view. You could always switch over to using the table view data source methods (and don't forget handling when data changes in the model and/or view) and see if those are easier--then you will have a more accurate basis of comparison Keary Suska Esoteritech, Inc. Demystifying

Re: tableViewSelectionDidChange does not fire on deselect

2014-04-01 Thread Keary Suska
this behavior in a test project that you can post? 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: Creating NSViewController with -init.

2014-03-25 Thread Keary Suska
(or -loadView) is called. Passing nil would be a logical option when, for instance, your NSViewController's view is not in a xib or is in a xib that it isn't responsible for loading. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: Creating NSViewController with -init.

2014-03-25 Thread Keary Suska
On Mar 25, 2014, at 9:29 AM, Kyle Sluder wrote: On Mar 25, 2014, at 7:22 AM, Keary Suska cocoa-...@esoteritech.com wrote:. The argument name tells it all: nibNameOrNil says that nil is a acceptable option. Why would it be named thus if a nil value would throw an exception? Nobody said

Core Data Transient Scalar Attribute Clarification

2014-03-12 Thread Keary Suska
Hoping for a definitive answer: is it actually necessary to use an instance variable to implement transient accessors for KVC-supported structs (NSRect friends)? It would seem that one could use Core Data's internal store, but the docs are not clear about this. TIA, Keary Suska Esoteritech

Re: NSUndoManager, NSTableView with bindings

2014-02-16 Thread Keary Suska
the NSUndoManager instance. 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: Display selectd sub-menuItem in NSPopUpButton

2014-02-14 Thread Keary Suska
in popup buttons. I don't have any real solutions, however, although I can suggest that you could hide the side effect with a recents section of the menu. Otherwise you will have to subclass NSPopupButtonCell and take over title and menu handling, AFAICT. HTH, Keary Suska Esoteritech, Inc

Re: Preserving undo actions on deleted targets

2014-01-29 Thread Keary Suska
available. For completeness I would add that I find it best that each root object in your data hierarchy have its own undo manager that it disposes of when the object deallocates. This is, for instance, how the document architecture handles it. HTH, Keary Suska Esoteritech, Inc. Demystifying technology

Re: Preserving undo actions on deleted targets

2014-01-29 Thread Keary Suska
On Jan 29, 2014, at 10:27 AM, Jerry Krinock wrote: On 2014 Jan 29, at 08:07, Keary Suska cocoa-...@esoteritech.com wrote: In my experience, manipulating NSUndoManager's stack is an exercise in frustration, as NSUndoManager's gets itself into an inconsistent state. IMHO this is largely

Re: Preserving undo actions on deleted targets

2014-01-29 Thread Keary Suska
On Jan 29, 2014, at 3:44 PM, Graham Cox wrote: On 30 Jan 2014, at 8:03 am, Keary Suska cocoa-...@esoteritech.com wrote: Absolutely, and I have found it invaluable to troubleshoot state issues, but unfortunately it is not App Store safe (read: basis for rejection), as it relies

Re: Letting an instance know its own index within a container array - how to?

2014-01-07 Thread Keary Suska
. 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-admins

Re: Set up an editable view based NSTableView programmatically - how to?

2014-01-07 Thread Keary Suska
tableView:objectValueForTableColumn:row:. Not to mention that I have used view-based table views with data sources... 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: Set up an editable view based NSTableView programmatically - how to?

2014-01-07 Thread Keary Suska
that are set as the owners of the views in -tableView:viewForTableColumn:row: (as well as in IB), and in the view I have an NSObjectController bound to the view controller's representedObject, and the editable fields bound to it in turn. HTH, Keary Suska Esoteritech, Inc. Demystifying technology

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-26 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

Strange Static Analyzer Warning

2013-12-11 Thread Keary Suska
the restore, but that didn't work. In all cases it trips on the gradient method call, which is odd, but it doesn't make any sense to me in any case... TIA, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business Keary Suska Esoteritech, Inc. Demystifying technology for your

Re: Strange Static Analyzer Warning

2013-12-11 Thread Keary Suska
On Dec 11, 2013, at 9:48 AM, Ken Thomases wrote: On Dec 11, 2013, at 10:25 AM, Keary Suska wrote: In this method: - (void) drawBezelWithFrame:(NSRect)frame inView:(NSView *)controlView { if (self.state == NSOnState) { // If selected we need to draw the border new background

Re: NSArrayController + NSTableView addObject ends editing

2013-11-14 Thread Keary Suska
for this purpose… HTH, Keary Suska Esoteritech, Inc. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe

Re: NSArrayController + NSTableView addObject ends editing

2013-11-14 Thread Keary Suska
, - (BOOL)selectionShouldChangeInTableView:(NSTableView *)aTableView is used for this purpose… HTH, Keary Suska Esoteritech, Inc. Note that when the new row is added, the selection does not change, but the editing of the cell is forced to end. The selection changes from a blue highlight

Re: Weird bug affecting 10.6 (but not newer)

2013-11-09 Thread Keary Suska
. -identifier was a new addition in 10.7. Use -tag instead, which works across the board, and is more appropriate for your use, IMHO. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa

Re: Field editors behavior.

2013-10-24 Thread Keary Suska
up the smartInsertDeleteEnabled method of NSTextView. 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

Re: NSTextField, maximum string length, bindings and NSFormatter

2013-10-24 Thread Keary Suska
; return valid; } 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: Determine keys used in NSPredicate

2013-10-19 Thread Keary Suska
would need to go and find all the NSPredicates that are using a property that is about to go away. You could but I imagine it would be fragile. You may be better off building your predicates manually--NSComparisonPredicate/NSExpression gives you the introspection that you need. HTH, Keary

Re: NSUserInterfaceItemIdentification -identifier vs -tag

2013-10-08 Thread Keary Suska
identifiers are better than tags as they lend themselves to be more human-manageable and have a level of uniqueness enforced Unlike tags, however, there isn't a way (yet, that I know of) to reference a view by its identifier. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home

Re: Predicate syntax and localisation

2013-10-07 Thread Keary Suska
Localizable.strings or equivalent file. IMHO it would be better to simply have a translation routine that converts predicates to a desired plain-language that itself could be properly localized to produce, for instance, volumeType est de 27 as well. HTH, Keary Suska Esoteritech, Inc. Demystifying technology

Re: NSValidatesImmediatelyBindingOption confustication

2013-09-25 Thread Keary Suska
. Please file a bug ;-) 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: Core Data: Primitive Accessors Ivar-Backed Properties

2013-09-18 Thread Keary Suska
On Sep 17, 2013, at 4:30 PM, Keary Suska wrote: I hadn't considered the undo issue--I guess I just thought undo support was automagical. If not, are you aware of whether it is implemented at the public or primitive accessor level? None of the doc examples I have seen do any undo handling

Re: Core Data: Primitive Accessors Ivar-Backed Properties

2013-09-17 Thread Keary Suska
On Sep 17, 2013, at 3:58 PM, Sean McBride wrote: On Tue, 17 Sep 2013 15:52:05 -0600, Keary Suska said: I appreciate the feedback--I am more looking for general feedback by fellow developers about either canonical forms or useful conventions in situations where using an ivar-backed attribute

Re: Core Data: Primitive Accessors Ivar-Backed Properties

2013-09-17 Thread Keary Suska
or useful conventions in situations where using an ivar-backed attribute is determined to be useful, rather than to address a specific problem. Thanks, On Sun, Sep 15, 2013 at 1:55 PM, Keary Suska cocoa-...@esoteritech.com wrote: Does anyone know whether it is useful to implement primitivekey

Re: Very strange Xpc magic

2013-09-16 Thread Keary Suska
the file manually through the preprocessor and examine the output. 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

Core Data: Primitive Accessors Ivar-Backed Properties

2013-09-15 Thread Keary Suska
a documentation error (the Core Data Programming Guide is a horrible mess, and yes, I have filed a radar). TIA, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Arraycontroller and CoreData

2013-09-12 Thread Keary Suska
controller to refetch whenever items are added/removed, either in the add/remove methods or similar in an NSArray subclass. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev

Re: Analyser reports memory leak… where?

2013-09-12 Thread Keary Suska
are *not* implemented this way. Back to the issue at hand, I am curious, is there a property declaration that indicates assign ownership? Also, if you simply set the ivar directly (mEventTypes = [self newEventTypes]), does the warning go away? HTH, Keary Suska Esoteritech, Inc. Demystifying technology

Re: NSPanel doesn't reposition correctly after screen resize

2013-09-03 Thread Keary Suska
, all things will be made clear by reading this doc: https://developer.apple.com/library/mac/documentation/cocoa/conceptual/CocoaDrawingGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40003290-CH201-SW1 Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: validateUserInterfaceItem problem

2013-08-29 Thread Keary Suska
chain: https://developer.apple.com/library/mac/documentation/cocoa/Conceptual/EventOverview/EventArchitecture/EventArchitecture.html#//apple_ref/doc/uid/1060i-CH3-SW9 Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: Experience with keyed archiving forward/backwards compatibility?

2013-08-28 Thread Keary Suska
transparent as long as you plan for 32/64 bitness. Or do you mean something else? 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: NSWindow setMinSize: jumps up to current size instead

2013-08-23 Thread Keary Suska
for the rather large differences, 68, between the min height and content min height, is because this window has a toolbar in addition to a title bar. Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing

Re: How to observe validity of NSTextField+NSNumberFormatter?

2013-08-23 Thread Keary Suska
, then in the controlTextDidChange delegate: 1. call formatter's getObjectValue:forString:range:error: 2. If it returns NO, disable the controls, and possibly zero the model value so you know it is invalid; 3. if it returns YES, enable the fields and update the model value. HTH, Keary Suska

Re: Fastest way to replace characters in string

2013-08-22 Thread Keary Suska
understood they really didn't... 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: Fastest way to replace characters in string

2013-08-22 Thread Keary Suska
/questions/8636983/what-is-the-best-way-to-initialize-nsmutablestring-object) that links to the open-source implementation of CFString. From there you can see what the optimization technique is, although I didn't notice *when* it allocates. Keary Suska Esoteritech, Inc. Demystifying technology

Re: Variable Number of Parameters in Method

2013-08-21 Thread Keary Suska
the same size and you avoid the NSNumber wrapping overhead. 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

Re: Compiler Error on Class Method?

2013-08-21 Thread Keary Suska
of a class, so dot notation would mean trying to directly access the class struct rather than executing a method, I would tend to think. In any case, dot notation is probably not what you want anyway. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: editing text part in a custom NSTextFieldCell (of a NSTableView)

2013-08-17 Thread Keary Suska
to use a vanilla NSTableCellView. It's actually a better approach to your overall table issue, IMHO. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: Uniquing data in Core Data

2013-08-14 Thread Keary Suska
. Think of it as a singleton that always exist and maintains the particular managed object. It also requires no code at all to maintain uniqueness--simply assign the relationship. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: LaunchAgent suddenly appears in Dock bouncing when CGImageSourceCopyPropertiesAtIndex is called

2013-08-11 Thread Keary Suska
. This doesn't change the behaviour. I'm linking against frameworks Foundation and ImageIO. Any thoughts as to why? Is an exception being logged? Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list

Re: reverse scanner

2013-08-10 Thread Keary Suska
are fun. 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: Single Click not Called on NSTextAttachment

2013-08-08 Thread Keary Suska
:. At least, this is what I had to do for my custom cells... 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

Re: How To Bind The Enabled Property of NSPopUpButtonCell Menu Items

2013-08-02 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

Re: NSUserDefaults deeply nested subtle mountain lion difference

2013-07-27 Thread Keary Suska
You might consider filing a radar for nested structure support in NSUserDefaults. 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: view based NSTable View - button not firing

2013-07-24 Thread Keary Suska
On Jul 23, 2013, at 11:14 PM, Kyle Sluder wrote: On Tue, Jul 23, 2013, at 12:42 PM, Keary Suska wrote: I didn't look at the attachment but is the button the root view for the cell, or is it a subview? I ask as I have encountered that even when you set up a table view as view-based

Re: view based NSTable View - button not firing

2013-07-23 Thread Keary Suska
that it will still behave in strange ways as if it were cell-based whenever a cell's root view has an NSCell that is acceptable in a cell-based table view, such as text fields and buttons. If this is the case, the solution is to embed your button in an NSView. HTH, Keary Suska Esoteritech, Inc

Re: NSUndoManager Won't Redo

2013-07-19 Thread Keary Suska
On Jul 18, 2013, at 2:04 PM, Quincey Morris wrote: On Jul 18, 2013, at 11:58 , Keary Suska cocoa-...@esoteritech.com wrote: Posting in hopes that someone has run into this case and figured it out. There used to be a bug in text field undo in a somewhat similar case (though I don't

NSUndoManager Won't Redo

2013-07-18 Thread Keary Suska
value (I want another part of the UI to update in real time). Setter does not register undo--that is done in registerUndoForKey:originalValue: shown above. Note that undo works as expected *except* for putting the stacks in an inconsistent state as I mention at first. Any clues? Keary Suska

Re: LATIN SMALL LETTER U WITH DIAERESIS

2013-07-17 Thread Keary Suska
this? use -URL instead? -filename is deprecated... 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: NSTextField: edits are committed even when -control:isValidObject: returns NO

2013-07-11 Thread Keary Suska
controller commit any pending edits and if it fails to reject the change in the button state and hence disabling the NSTextField. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev

Re: Changing Text Field Color to Custom Color in IB

2013-07-04 Thread Keary Suska
--the color selections are always menus, and you select Other to specify your own color, which should bring up the OS X color picker. Perhaps if you could provide screen captures... Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: How to determine the Http Method type being implemented for web service API

2013-06-24 Thread Keary Suska
of your control you cannot assume much. I have found that the best approach is to log all activity while using the web service through its public front-end and model after that. Also be prepared for your logic to break at any time. Such is the nature of web services… HTH, Keary Suska

Re: fast search of NSPointerArray

2013-06-23 Thread Keary Suska
to make recommendations on structure. Notwithstanding the performance issue, it may be useful to periodically compact the pointer arrays. Some heuristics could be employed to minimize its impact on the user experience; e.g. at save time. HTH, Keary Suska Esoteritech, Inc

<    1   2   3   4   5   6   7   8   >