Re: scrollPoint in NSScrollView does not scroll

2013-06-17 Thread Keary Suska
(the visible frame of the scroll view) by enough that you will get a visible scroll effect. Also, if the document view is an NSTextView, it might have some layout to do before the size is known so you might have to wait until the view is displayed before you can scroll. HTH, Keary Suska

Re: scrollPoint in NSScrollView does not scroll

2013-06-17 Thread Keary Suska
On Jun 17, 2013, at 8:38 AM, Keary Suska wrote: NSScrollView* myscrollview = [[NSScrollView alloc] initWithFrame:NSMakeRect(0, 0, 200, 200)]; NSClipView* myclipview = [[NSClipView alloc] initWithFrame:NSMakeRect(0, 0, 500, 400)]; [myscrollview setHasVerticalScroller:YES

tab view item - objects Binding

2013-06-17 Thread Keary Suska
I have recently noticed that when I have a xib with an NSTabView, an option in the bind-to-controller shows up named tab view item - objects. Does anyone know what this is? I can't find anything at all about it... Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar: and nibs

2013-06-12 Thread Keary Suska
that you would subclass NSToolbar and implement that delegate method if you want to intercept it. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: using SUBQUERY to remove nulls

2013-06-05 Thread Keary Suska
the backtrace if you want potentially better feedback. In any case, it is highly unlikely to be the predicate or underlying SQL machinery that is causing this crash. HTH, Keary Suska Esoteritech, Inc. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: NSArrayController Added /Removed Objects

2013-06-03 Thread Keary Suska
accessors for the entity. 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

Auto Layout NSScrollViews

2013-05-27 Thread Keary Suska
squashes everything into a zero height? If I don't set the document view as not resizable in initWithFrame: it squashes the ScrollView too. Bizarre. TIA, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing

Re: Building an MVC based App for Mac OS X - NOT for iOS

2013-05-27 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: NSCollectionView - different highlight color

2013-05-23 Thread Keary Suska
all the highlighting myself, so of course I had complete control over 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

Re: NSTextField binding returns nil not empty string

2013-04-30 Thread Keary Suska
)validateHeadline:(id *)ioValue error:(NSError **)outError { if ( *ioValue == nil ) *ioValue = @; return YES; } This way you don't add side-effects to your accessors, and avoid hard to debug issues if you happen to use the ivar directly somewhere down the road. HTH, Keary

Re: Laying out text in NSTextView around a subview

2013-04-29 Thread Keary Suska
by a block view, and inline views for the inline part. You will also likely want to become familiar with NSTextBlock, which will make having text flow around an object much easier. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: NSBrowser editItemAtIndexPath:withEvent:select:

2013-04-12 Thread Keary Suska
mean more in the first column than in subsequent columns. Putting a leaf node in the first column and selecting it may reveal something. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list

Re: Convert spelled out numbers to digits?

2013-03-27 Thread Keary Suska
to end, adding up the value and removing number atoms until the string is exhausted or you have uninterpretable text and have to decide what to do about it. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa

Re: Global (all-user) preferences for an application

2013-03-16 Thread Keary Suska
prefs with the user prefs if you want to use them with NSUserDefaults. 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: Objective-C Question

2013-03-11 Thread Keary Suska
class. [[self superclass] someMethod]; This specifically invokes the superclass' method, in the superclass' context. It is the same as calling [SuperClass someMethod] Any help? Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: NSButton in NSToolbarItem does not use small size

2013-02-26 Thread Keary Suska
the button appropriately. 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: Interpreting glyph layout exception

2013-02-24 Thread Keary Suska
PM TeXnicle[5487]: !!! _NSLayoutTreeLineFragmentRectForGlyphAtIndex invalid glyph index 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

Re: NSButton in NSToolbarItem does not use small size

2013-02-24 Thread Keary Suska
, and then you will probably need to specify the min/max sizes. 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: NSButton in NSToolbarItem does not use small size

2013-02-24 Thread Keary Suska
On Feb 24, 2013, at 4:05 PM, Kyle Sluder wrote: Perhaps I'm not understanding your post, but On Sun, Feb 24, 2013, at 02:53 PM, Keary Suska wrote: On Feb 24, 2013, at 1:11 PM, Michael Starke wrote: I suspect the issue is that NSButton does not have built-in semantics for control size

Re: NSTableView and NSArrayController with Handles Content As Compound Value - won't select new items in Table View

2013-02-17 Thread Keary Suska
. The easiest way around it seems to me to use your own method for -add: and not rely on the NSArrayController behavior. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev

Re: Binding a NSArrayController to a NSPopupButtonn NSTextField

2013-02-17 Thread Keary Suska
to the index of the object selected in the NSPopUpButton. This is really the key here--what I forgot is that NSTableView automatically binds selectedIndex behind the scenes, which is why selection semantics just seem to work. For others, selectionIndex wants to be explicitly bound. Keary Suska

Re: How to use NSManagedObjectContext, NSManagedObjectModel, NSEntityDescription, NSManagedObject

2013-02-15 Thread Keary Suska
as change tracking and undo management0--essentially everything that NSManagedObjectContext does. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Binding a NSArrayController to a NSPopupButtonn NSTextField

2013-02-15 Thread Keary Suska
), and then bind the NSTextField to that other controller. You may be able to use an NSObjectController in the xib to act as the proxy for the value, however kludgey. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: How to use NSManagedObjectContext, NSManagedObjectModel, NSEntityDescription, NSManagedObject

2013-02-15 Thread Keary Suska
On Feb 15, 2013, at 4:21 PM, Jens Alfke wrote: On Feb 15, 2013, at 8:11 AM, Keary Suska cocoa-...@esoteritech.com wrote: If what you are looking for are the benefits of Core Data but with your own database back-end, you pretty much will have to write your own database coordination methods

Re: NSTextView with irregular shape

2013-02-14 Thread Keary Suska
enough sample code that you can figure out what is happening. Good luck, 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: NSComboBox and Multiple Selection

2013-02-12 Thread Keary Suska
NSComboBox does this. 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: Changing drag image while modal

2013-02-12 Thread Keary Suska
, and it might also not be HIG compatible or user friendly. It would be easier to simply accept the drop in the above method (if the data is minimally acceptable) and then send the handling of the drop to a method that can query the user as you want using performSelector...withDelay. HTH, Keary Suska

Re: Managing relationships by fetching related objects within subclass of NSManagedObject

2013-02-09 Thread Keary Suska
also the to-many side of the relationship as long as both are modeled. You can also do the reverse, inserting the Employee object into the Company to-many relationship collection (in a KVO-compliant way). Note that this is all fully and well documented in the Core Data docs. HTH, Keary Suska

Re: Managing relationships by fetching related objects within subclass of NSManagedObject

2013-02-09 Thread Keary Suska
to worry about faulting if Core data doesn't think it needs to manage the relationship. On Sun, Feb 10, 2013 at 12:16 AM, Keary Suska cocoa-...@esoteritech.com wrote: On Feb 9, 2013, at 10:20 AM, Devarshi Kulshreshtha wrote: Say I have an employee entity and a company entity in core data

Re: converting coredata files

2013-02-07 Thread Keary Suska
. Then create an xcode project without the old datamodels and use that? Yes, this makes sense. I'm not sure if you also need to run your converter app on an older version of the OS. Does this make sense? Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: Strange Problem Printing Multiple NSTextViews

2013-02-06 Thread Keary Suska
On Feb 5, 2013, at 6:03 PM, Keary Suska wrote: I have a custom view on which I place multiple NSTextViews, but when printed only the *content* last NSTextView placed actually shows up. That is, to make sure I am placing view appropriately my NSTextView subclass draws a box around its

Strange Problem Printing Multiple NSTextViews

2013-02-05 Thread Keary Suska
shows. If I call it any more than once only the last NSTextView will show its text content in the last NSTextView placed. TIA, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev

Re: Binding NSMenu to NSArray

2013-02-04 Thread Keary Suska
, although it is fairly easy to maintain a menu and synchronize it with the kind of data structure you are talking about. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev

Re: Binding problem with core data

2013-02-03 Thread Keary Suska
content to be an array; in entity mode, it expects the content to be a set. 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: Zombie object being messaged - why?

2013-01-25 Thread Keary Suska
reference to their target until they are invalidated, after which time they would not fire anyway. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Zombie object being messaged - why?

2013-01-25 Thread Keary Suska
+ 869 frame #15: 0x00011d02 TeXnicle`main + 34 at main.m:32 frame #16: 0x00011cd4 TeXnicle`start + 52 Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev

Re: NSComboBox, binding, multiple selection, multiple values == trouble

2013-01-23 Thread Keary Suska
handle it manually, using target-action. This way, when your controller receives the action you can check for a multiple selection and ignore it if so. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev

Re: NSAttributedString boundingRectWithSize vs. paragraph margins

2013-01-23 Thread Keary Suska
what you want if all else fails... 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 avoid warning?

2013-01-22 Thread Keary Suska
, however, the exact method to hint to the compiler enough to avoid the warning. Importing the protocol header may be sufficient. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev

Re: Best guess at expressing a string as a variable

2013-01-22 Thread Keary Suska
, and you also want to consider case-sensitivity. If your application is handling all tokenization and interpretation then it doesn't really matter what do you as long as it is sufficiently tokenize-able. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: Best guess at expressing a string as a variable

2013-01-22 Thread Keary Suska
in identifier names (that I know of). Additionally, for higher-level interpreted languages the app would need to understand identifier prefixes such as $, @ and % (and maybe ). Best, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: Printing a view + landscape printing

2013-01-21 Thread Keary Suska
that in the NSPrintInfo. NSPrintInfo will tell you the paper size and margins, from which you can determine the printable area, then dividing that by the view frame or bounds. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Programmatically Determining the Rendered Size of an NSTextView

2013-01-17 Thread Keary Suska
and thousands and seems unmanageable from a usability standpoint. Anyone have an idea how to do this? Pointers to docs/blogs/WWDC sessions welcome. TIA, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing

Re: How to get registered dragged types from NSWindow?

2013-01-14 Thread Keary Suska
for that information makes the most sense. 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: NSViewController in the responder chain

2013-01-06 Thread Keary Suska
this is the case but it doesn't hurt to check. 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: Optimal height for WebView

2013-01-04 Thread Keary Suska
have already tried this, what does [[yourWebView mainFrame] webView] frame] give you? 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: Editing multiple selections with bindings

2013-01-03 Thread Keary Suska
could just pass nil and end all editing. The latter may make more sense for the detail view, as I assume the decision might apply to every field... On Jan 2, 2013, at 9:10 PM, Keary Suska wrote: On Jan 2, 2013, at 7:29 PM, Patrick Cusack wrote: Ok, I do have a delegate for my controls

Re: Text Field Cells in Table View: Enabled and Editable not working

2013-01-02 Thread Keary Suska
On Jan 1, 2013, at 9:56 PM, Jerry Krinock wrote: Table columns' Editable checkboxes are switched on. Text field cells' Enabled checkboxes are switched on. How about the Conditionally sets editable checkbox? Best if unchecked--maybe also Conditionally sets enabled... HTH, Keary Suska

Re: Editing multiple selections with bindings

2013-01-02 Thread Keary Suska
can set a delegate to the table view and implement tableView:shouldEditTableColumn:row:, and you should be able to prevent editing from even starting until the user has confirmed. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: Editing multiple selections with bindings

2013-01-02 Thread Keary Suska
subclasses use these so it should work for your combo boxes as well. On Jan 2, 2013, at 6:41 AM, Keary Suska wrote: On Jan 2, 2013, at 12:05 AM, livinginlosange...@mac.com wrote: I have an application where a user can select multiple rows of data from an NSArrayController and edit those rows

Re: Text Field Cells in Table View: Enabled and Editable not working

2013-01-02 Thread Keary Suska
On Jan 2, 2013, at 8:49 AM, Jerry Krinock wrote: On 2013 Jan 02, at 06:36, Keary Suska cocoa-...@esoteritech.com wrote: How about the Conditionally sets editable checkbox? Best if unchecked--maybe also Conditionally sets enabled... Seems like a good idea, Keary, so I rebuilt with all

Re: Bound NSTextField displays Selection Placeholder instead of Null Placeholder

2012-12-31 Thread Keary Suska
On Dec 30, 2012, at 9:29 PM, Quincey Morris wrote: On Dec 30, 2012, at 07:59 , Keary Suska cocoa-...@esoteritech.com wrote: I am not sure I am experiencing this bug, if I understand you correctly. I can change the binding placeholder string and the bug will show the new changed

Re: Bound NSTextField displays Selection Placeholder instead of Null Placeholder

2012-12-30 Thread Keary Suska
is a timing issue with nib loading, but the fact that the appropriate placeholder is never updated until the first edit. Looks like I am back to setting the binding placeholder for every field sigh Thanks for all your help! Keary Suska Esoteritech, Inc. Demystifying technology for your home

Re: Binding NSTableView columns to dynamic properties in Core Data?

2012-12-30 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: Bound NSTextField displays Selection Placeholder instead of Null Placeholder

2012-12-29 Thread Keary Suska
On Dec 28, 2012, at 10:37 PM, Quincey Morris wrote: On Dec 28, 2012, at 20:53, Keary Suska cocoa-...@esoteritech.com wrote: in my case it only happens when the there is a value before the window is shown, but then cleared, but not exited. Just to clarify, are you saying that when you

Re: Bound NSTextField displays Selection Placeholder instead of Null Placeholder

2012-12-28 Thread Keary Suska
this issue, or have a way to debug it further? I suppose I could go through my 75+ xibs and set the no selection placeholder for every next field to a single space but that seems like madness. TIA, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: Checking document structure in NSDocument based app

2012-11-27 Thread Keary Suska
. In the meantime, you can explicitly test for the existence of certain keys using -containsValueForKey: in your initWithCoder: method(s). HTH, Keary Suska Esoteritech, Inc. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: nssound question

2012-11-21 Thread Keary Suska
sure this is the case? All sounds (including system beeps) on my Macs always play through external speakers when connected, and I don't seem to have any way to tell it otherwise… HTH, Keary Suska Esoteritech, Inc. ___ Cocoa-dev mailing list (Cocoa-dev

Re: Suggestions Please - Lookup Lists in Core Data

2012-11-04 Thread Keary Suska
are dealing with has only a few objects; 3. separate entities allow the model to be self-documenting. HTH, Keary Suska Esoteritech, Inc. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: Getting rid of primitive accessor warnings

2012-11-01 Thread Keary Suska
that I don't believe Xcode could predict? This would make their generation spurious. I am simply theorizing--perhaps taking this up on the Xcode-users list will garner better responses. HTH, Keary Suska Esoteritech, Inc. ___ Cocoa-dev mailing list

Re: Getting rid of primitive accessor warnings

2012-11-01 Thread Keary Suska
On Nov 1, 2012, at 9:24 AM, Fritz Anderson wrote: On 1 Nov 2012, at 9:55 AM, Keary Suska cocoa-...@esoteritech.com wrote: This is normal and expected, as it is a default warning (at least on OS X). What is the problem, exactly? There is no value whatsoever that I know of to declare

Re: Need faster approach to load data in NSTableView from a file

2012-10-26 Thread Keary Suska
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 comments to the list

Re: filtering an array of entities using NSPredicate

2012-10-15 Thread Keary Suska
, as -predicateWithFormat: is notorious for not working well with aggregate operations. Jerry Krinock's suggestion of constructing the predicate manually works most reliably, so that would be your next step to a solution. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: Core Data Multiuser

2012-10-09 Thread Keary Suska
notification system--just spin off a worker thread that handles it. 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: NSPredicate / NSArray addObserver:forKeyPath:options:context: exception

2012-09-29 Thread Keary Suska
On Sep 28, 2012, at 7:17 PM, Mikkel Eide Eriksen wrote: On 28/09/2012, at 03.51, Keary Suska wrote: On Sep 27, 2012, at 11:54 AM, Mikkel Eide Eriksen wrote: When I run my app, I get an exception (quoted below) as soon as I expose my objects to my array controller (via a property on my

Re: Getting local IP of Wi-Fi device

2012-09-12 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: Using NSTextField value without changing focus?

2012-09-11 Thread Keary Suska
, or at least not an up-to-date copy, which is generally a bad idea. The calculation method should retrieve the values directly from the model owner on demand, which will do what you need. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: Binding NSSegmentedControl selection to user defaults

2012-08-29 Thread Keary Suska
concurrently. However, changing this to only single selection did not cure the crash. 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: Binding NSSegmentedControl selection to user defaults

2012-08-28 Thread Keary Suska
, changing this to only single selection did not cure the crash. 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: Focus issues with NSTableView in NSPanel

2012-08-21 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: Focus issues with NSTableView in NSPanel

2012-08-21 Thread Keary Suska
-grained approach, at least only forwarding mouse events that occur within the table view's domain. On 21 août 2012, at 16:51, Keary Suska wrote: On Aug 21, 2012, at 6:48 AM, Jean Suisse wrote: I have an NSPanel window that contains an NSTableView with the usual setup (NSPanel - content view

Re: filtering the values in an NSTableColumn

2012-08-10 Thread Keary Suska
/predicates.html) does it show that your syntax is in any way valid? 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: NSTableView not setting -clickedRow, -clickedColumn as it should

2012-08-08 Thread Keary Suska
: and columnIndexesInRect:/columnAtPoint: to derive the location. 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: Sorting NSArray -- advice on how to accomplish a simple alpha ordering?

2012-08-01 Thread Keary Suska
sortDescriptors? 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: Bound NSTextField displays Selection Placeholder instead of Null Placeholder

2012-07-30 Thread Keary Suska
with a controller, whether it has a selection or not is dominant. Your first line of attack is to determine why the controller has no selection... HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing

Re: Bound NSTextField displays Selection Placeholder instead of Null Placeholder

2012-07-30 Thread Keary Suska
On Jul 30, 2012, at 10:32 AM, Markus Spoettl wrote: On 7/30/12 4:54 PM, Keary Suska wrote: I have an NSTextField bound to some NSString property via the selection proxy of an array controller. When the property value is nil, the field displays the selection placeholder, not the null

Re: How to anchor a child-window to its parent top-right (or other point) while parent resizes.

2012-07-22 Thread Keary Suska
of the child window. Sounds pretty easy to me... 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: Cell in Selected NSTableView Not Redrawn

2012-07-21 Thread Keary Suska
On Jul 20, 2012, at 9:36 PM, Quincey Morris wrote: On Jul 20, 2012, at 19:03 , Keary Suska wrote: In an NSTableView I am providing custom cells via tableView:dataCellForTableColumn:row:, based on values represented in other columns. The cell is usually determined when a value is specified

Fwd: Cell in Selected NSTableView Not Redrawn

2012-07-21 Thread Keary Suska
On Jul 20, 2012, at 19:03 , Keary Suska wrote: In an NSTableView I am providing custom cells via tableView:dataCellForTableColumn:row:, based on values represented in other columns. The cell is usually determined when a value is specified via NSPopupButtonCells in two other columns. When

Cell in Selected NSTableView Not Redrawn

2012-07-20 Thread Keary Suska
and the other is generated in code. Code is below. Any help is appreciated, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business // this method seems to work as expected - (IBAction)selectColumn:(id)sender { // set expression value ClauseExpression *expression

Re: NSTableView Sends Null Column to Delegate/DataSource

2012-07-14 Thread Keary Suska
, targeting 10.6. 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

NSTableView Sends Null Column to Delegate/DataSource

2012-07-13 Thread Keary Suska
I am having a strange issue I haven't encountered before--for all of my data source and delegate methods the table view is sending nil for the table column, which obviously prevents me from fulfilling any of the requests. Has anyone seen this? Xcode 4, targeting 10.6. TIA, Keary Suska

Re: How to implement an object whose properties are really dictionary entries.

2012-07-12 Thread Keary Suska
to distinguish is the setX vs X pattern, determine the actual key name (really just extracting and formatting when you get a setX method), change the selector of the invocation to the appropriate undefined key method, and invoke it. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home

Re: How to implement an object whose properties are really dictionary entries.

2012-07-11 Thread Keary Suska
and not get a bunch of compiler warnings. Even Core Data still requires you to declare properties to avoid compiler warnings, which is a good sign that what you are after is not cleanly possible. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: How to implement an object whose properties are really dictionary entries.

2012-07-11 Thread Keary Suska
feel that you need to reinvent the wheel, or you need your own backing store that isn't CD-friendly, it seems much simpler to me to just override the undefinedKey methods. Keary Suska Esoteritech, Inc. Demystifying technology for your home or business On 2012-07-11, at 6:46 AM, Keary Suska

Re: How to implement an object whose properties are really dictionary entries.

2012-07-11 Thread Keary Suska
On Jul 11, 2012, at 2:45 PM, Motti Shneor wrote: Of what I read from everyone, and after examining the suggested code from Jens Alfke, I think I'm inclined to something simpler, hinted by Keary Suska. Could you spare a few more words on the undefinedKey override? I would create a base

Re: How to implement an object whose properties are really dictionary entries.

2012-07-11 Thread Keary Suska
On Jul 11, 2012, at 6:53 PM, Dave DeLong wrote: On Jul 11, 2012, at 4:54 PM, Keary Suska wrote: On Jul 11, 2012, at 2:45 PM, Motti Shneor wrote: Of what I read from everyone, and after examining the suggested code from Jens Alfke, I think I'm inclined to something simpler, hinted

Re: One more try - NSCollectionView multi-selection problem..

2012-07-10 Thread Keary Suska
: Except that you're thinking about NSTableView--NSCollectionView doesn't have any delegate methods for selection semantics, that I know of. It sounds fragile to me but maybe this check could be done in -setSelectionIndexes: ? HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your

Re: Debugging bindings with -NSBindingDebugLogLevel 1

2012-07-08 Thread Keary Suska
Coding, which would throw an undefined key exception. 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: Sorting an NSTableView bound to an NSArrayController.

2012-06-28 Thread Keary Suska
to implement an NSEntityDescription subclass for the sort method. If that proves to be problematic, you can fall back to binding/delegate that you can implement in your window controller. On 28 Jun 2012, at 19:38, Keary Suska wrote: On Jun 28, 2012, at 9:44 AM, Robert Tillyard wrote: Hello

Re: Refreshing an NSTableView with some columns using bindings, others not..

2012-06-14 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

Re: No validation with a bound NSTableView and custom NSFormatter

2012-05-03 Thread Keary Suska
are great, and I use them extensively in almost everything I do. But it seems to me they are really built for straightforward usage and if you need to stretch them they tend to break. Not to mention that they are completely opaque and are a bear to debug. HTH, Keary Suska Esoteritech, Inc

Re: NSTableView doesn't show data until I click on a header

2012-04-29 Thread Keary Suska
:22 PM, Koen van der Drift wrote: On Apr 28, 2012, at 6:21 PM, Keary Suska wrote: Are you updating the model data in a KVO-compliant way? Bingo! Thanks for pointing that out, I kept looking at my connections in IB, and forgot about the actual code. So for future reference, my data

Re: NSTableView doesn't show data until I click on a header

2012-04-28 Thread Keary Suska
, arraycontroller and bindings settings, but must have missed something too obvious. Any idea which setting I missed that could cause this behavior? Are you updating the model data in a KVO-compliant way? Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: addsubview

2012-04-24 Thread Keary Suska
NSPDText with a canned cocoa UI object? 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: addsubview

2012-04-24 Thread Keary Suska
, that it is not displaying itself as it should. What is NSPDText anyway? It isn't a Cocoa class that I know of. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: NSDateFormatter problem

2012-04-24 Thread Keary Suska
can fix. 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: NSDateFormatter problem

2012-04-20 Thread Keary Suska
On Apr 20, 2012, at 6:08 AM, Lorenzo Thurman wrote: On Apr 19, 2012, at 10:18 PM, Keary Suska wrote: Perhaps this excerpt from the API doc is key: Do not use these constants if you want an exact format. Why, might be academic, but if you require a specific style, you may want to specify

Re: addsubview

2012-04-19 Thread Keary Suska
see the subview. How do you know it is the correct/same subview? When the NSTabViewItem displays the subview is not being shown. The view does display. The subview is not set hidden in IB. Why would I not see the subview? Keary Suska Esoteritech, Inc. Demystifying technology for your

Re: Question about hebrew in textfields and textviews

2012-04-11 Thread Keary Suska
-setBaseWritingDirection:, although there may be other and better ways. 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

<    1   2   3   4   5   6   7   8   >