Re: Accessibility Settings

2024-01-11 Thread Keary Suska via Cocoa-dev
I don’t have those settings on my Mac (Monterey) so I can’t check but I wonder if you can simply query existing controls for their font information? HTH, Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business” > On Jan 11, 2024, at 8:50 AM, Alex Zavatone v

Re: Mystery interference with AirPlay

2022-06-15 Thread Keary Suska via Cocoa-dev
Internet-enabled receivers. Also note that devices might need to be turned on to be found. HTH, Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" > On Jun 15, 2022, at 7:26 AM, Steven Mills via Cocoa-dev > wrote: > > On Jun 15, 2022

Re: Problem with rangeOfString and Umlauts

2022-03-11 Thread Keary Suska via Cocoa-dev
NSRange is 0-based, so the 16th character is index 15. Also you might want to use -localizedStandardRangeOfString: instead... Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business” > On Mar 11, 2022, at 9:10 AM, Jack Brindle via Cocoa-dev > wrote:

Re: Indexing broken for one project

2022-02-06 Thread Keary Suska via Cocoa-dev
want to delete or move derived data from other projects); and 3) restarting the computer. HTH, Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business” > On Feb 6, 2022, at 9:32 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > Thanks a lot for your

Re: Intermittent invisible NSWindow

2021-11-15 Thread Keary Suska via Cocoa-dev
case, additionally revealed by logging the window frame. I have seen some auto layout wonkiness that forces too-small frame, though not enough to make it disappear. Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business” > On Nov 15, 2021, at 7:13 AM, Tom

Re: Intermittent invisible NSWindow

2021-11-13 Thread Keary Suska via Cocoa-dev
Have you logged the window coordinates? It might be placed fully offscreen, and that would produce the behavior you are seeing. Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business” > On Nov 13, 2021, at 9:52 AM, Tom Doan via Cocoa-dev > wrote: >

Re: Accessing a property of a view via its controller doesn't work

2021-09-04 Thread Keary Suska via Cocoa-dev
not be called, and I suspect the “window” property would be set. Breakpoints are your friend. Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" > On Sep 4, 2021, at 12:06 PM, Ben Kennedy via Cocoa-dev > wrote: > > >> On Sep 4

Re: Special question about NSOpenPanel

2021-05-24 Thread Keary Suska via Cocoa-dev
seem to be any rhyme or reason and it happens just as much if not more with Apple apps (Safari & Preview especially) as well as others. I suspect a bug in the OS. Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" > On May 24, 2021, at 12:55 PM, Gab

Re: MacOS: nonmodal NSAlert panel

2021-05-12 Thread Keary Suska via Cocoa-dev
I believe Apple uses NSPopOver for non-modal alerts and dialogs, which can automatically dismiss when the user clicks outside the popover. Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" > On May 12, 2021, at 12:17 PM, Carl Hoefs via Cocoa-dev >

Re: fileManagerWithAuthorization:

2021-03-15 Thread Keary Suska via Cocoa-dev
(https://developer.apple.com/news/?id=09032019a) and may need user granted permission to access certain areas. Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" > On Mar 15, 2021, at 12:44 AM, Allan Odgaard via Cocoa-dev > wrote: > > On

Re: Programmatically created NSButton is drawn in the wrong position.

2020-12-15 Thread Keary Suska via Cocoa-dev
Based on what you are doing, setting the property to YES will get you closer to what your problem is. When this property is NO, you cannot accurately control the view’s frame. That being said, when are you verifying that the frame of the buttons is unchanged? Keary Suska Esoteritech, Inc

Re: NSTimer +timerWithTimeInterval:

2020-04-29 Thread Keary Suska via Cocoa-dev
Are the timer values actual numeric constants, or a variable defined earlier in code? Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" > On Apr 29, 2020, at 3:35 PM, Carl Hoefs via Cocoa-dev > wrote: > > There are no extensions or cat

Re: Permission Denied trying to connect to localhost in unit test

2019-12-13 Thread Keary Suska via Cocoa-dev
Delegate. Keary Suska Esoteritech, Inc. > On Dec 13, 2019, at 7:35 AM, Robert Walsh via Cocoa-dev > wrote: > > Thanks - I just finished doing that. I stubbed out a simple main that has > enough smarts to use this TcpClient the way it will be used in the real app, > and I w

Re: Permission Denied trying to connect to localhost in unit test

2019-12-13 Thread Keary Suska via Cocoa-dev
not for deployment. Should be easy enough because it doesn’t have to do anything in the GUI. Keary Suska Esoteritech, Inc. > On Dec 13, 2019, at 4:42 AM, Robert Walsh via Cocoa-dev > wrote: > > The errno is 13 (which I think is just a generic Permission Denied). > >

Re: 'altool' cannot be found

2019-06-16 Thread Keary Suska via Cocoa-dev
Looks like something was up with the Cocoa Dev list—you probably see that it came in early this morning. Anyway, glad I could be help. Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" > On Jun 15, 2019, at 12:14 PM, Leo via Cocoa-dev > wrote

Re: 'altool' cannot be found

2019-06-15 Thread Keary Suska via Cocoa-dev
xcode-select -p does it show the expected path? Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" > On Jun 15, 2019, at 12:12 AM, Leo via Cocoa-dev > wrote: > > > Hi all, > > I wanted to start building a notarization automation scri

Re: Crashing in NSTabView

2019-05-22 Thread Keary Suska
ation. You may also want to check out Instrument’s zombies, which might better pinpoint where the issue is ocurring. HTH, Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" > On May 22, 2019, at 8:26 AM, Casey McDermott wrote: > > Our Mac app

Re: NSTextField "Discard Change"

2019-05-06 Thread Keary Suska
IIRC, you get this behavior automatically when validating with a formatter, so applying a custom NSNumberFormatter subclass might be more canonical and less kludgey. HTH, Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" > On May 6, 2019, at 5:3

Re: NSTabViewItem and NSViewController

2019-04-04 Thread Keary Suska
item should be gone as well. Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" > On Apr 4, 2019, at 9:29 AM, Casey McDermott wrote: > > The tab view item has a strong reference to the view controller, but the > controller is released >

Re: NSTabViewItem and NSViewController

2019-04-04 Thread Keary Suska
better choice. Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" > On Apr 4, 2019, at 7:43 AM, Casey McDermott wrote: > > We have a tab view with tabs added from code. Each tab uses a NSTabViewItem > subclass, > which contains a refere

Re: Silly question on extending NSObject.

2019-02-19 Thread Keary Suska
as your App delegate class. HTH, Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" > On Feb 19, 2019, at 2:37 PM, Rob Petrovec wrote: > > Why not use/override -description or -debugDescription instead of > re-inventing the wheel? > >

Re: is there a way to determine if an NSButton is toggleable ?

2018-08-20 Thread Keary Suska
setState: to see if it is being set when it shouldn’t, and maybe by whom. Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" > On Aug 20, 2018, at 4:04 AM, Guillaume Laurent > wrote: > > Hi all, > > > For a custom UI I’ve had to

Re: NSComboBox

2018-07-25 Thread Keary Suska
NSComboBox is just a suped-up NSTextField, so you can some sort of validation so you can prevent the user from exiting the field if they don’t enter an acceptable value. The most basic approach is delegation and doing the check in -control:textShouldEndEditing: HTH, Keary Suska Esoteritech

Re: Creating object graph in swift, Core Data or vanilla objects?

2018-03-21 Thread Keary Suska
In that case the only way to avoid having to remove objects first, that I can think of, is to create your own custom persistent store. It’s not too hard, and might be a better solution in the long run anyway. Keary Suska Esoteritech, Inc. "Demystifying technology for your home or bus

Re: Creating object graph in swift, Core Data or vanilla objects?

2018-03-21 Thread Keary Suska
Why not just use a different persistent store instance each time? An in-memory store shouldn’t be terribly expensive to create, and you can either keep or dispose of other stores as you need. Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" > On

Re: Popup-Menu Binding issue in Cell-based NSTableView

2018-01-04 Thread Keary Suska
it doesn’t display anything very long. Maybe some > auto layout issue, I don’t know - but still this is strange. Can’t say, but if your assumption on autolayout is correct, it should only resize based on the content, so it shouldn’t always go up, it should also go down when the content is s

Re: Popup-Menu Binding issue in Cell-based NSTableView

2018-01-02 Thread Keary Suska
Every popup cell in a table column must be a different object. Did you check to see whether the -representedObject of the NSMenuItem is being set? I don’t recall whether bindings does this, but if it does, you can use its unique ID (if you have a developer-specified ID) or have the tag be a pro

Re: Popup-Menu Binding issue in Cell-based NSTableView

2018-01-01 Thread Keary Suska
nu or action of each item. The former you might be able to do with a table delegate method, but you may not be able to do the latter depending on when bindings populates the popup. > When the editing is done via the “Selected Object” binding - can I still >

Re: What do the font-related Cocoa Bindings in NSTableView and NSTableColumn do?

2017-04-05 Thread Keary Suska
> On Apr 4, 2017, at 4:34 PM, Daryle Walker wrote: > > >> On Apr 4, 2017, at 9:57 AM, Keary Suska wrote: >> >> >>> On Apr 3, 2017, at 5:40 PM, Daryle Walker wrote: >>> >>> Is there a way to affect the font of a table cell via Bindings

Re: disable group of controls

2017-04-05 Thread Keary Suska
ings for the “latent” state, the responsible controller can observe the group disable property and adjust accordingly. HTH, Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" ___ Cocoa-dev mailing list (Cocoa-dev

Re: How do I set a NSTextView's font in Interface Builder?

2017-03-24 Thread Keary Suska
> On Mar 24, 2017, at 3:08 PM, Jens Alfke wrote: > >> On Mar 24, 2017, at 11:28 AM, Keary Suska wrote: >> >> I don’t believe that is actually true. Attributes *can* apply to an empty >> range. > > It may be that the serialized form of the strin

Re: How do I set a NSTextView's font in Interface Builder?

2017-03-24 Thread Keary Suska
y to an empty range. Alternatively, or additionally, I believe if you call setTypingAttributes: on an empty text view that any new types text will use the specified attributes. HTH, Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" __

Re: Handling Cocoa Bindings over a tree of View Controllers

2017-03-21 Thread Keary Suska
ler for each view, and there is no need for controllers to synchronize as that will happen automatically with model changes. HTH, Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" ___ Cocoa-dev mailing list (C

Re: How hard is it to make a NSOrderedSetController?

2017-02-18 Thread Keary Suska
i-CH17-SW1>. You may need to use a different key name to get prevent Core Data from interfering, say “headerAsArray” or whatever. HTH, Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" ___ Cocoa-dev mailing

Re: Some help with NSComparisonPredicate please

2017-02-17 Thread Keary Suska
h the docs don’t state directly so an alternative would be to construct the string before passing to -predicateWithFormat: Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple

Re: Table selection and bindings

2017-02-14 Thread Keary Suska
otifications are not sent when programmatic selection changes are made. The only way around this is to watch directly for selection changes, which you may be able to accomplish either by observing selectedRowIndexes of NSTableView or selectionIndex(es) of an NSArrayController that the tab

Re: UI bindings

2017-02-10 Thread Keary Suska
paths. Oh, and avoid storyboards at this stage as (IMHO) they are unintuitive and flout all other MVC documentation. Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" ___ Cocoa-dev mailing list (Cocoa-dev@lists

Re: Intercept Save when closing NSDocument

2017-02-10 Thread Keary Suska
is the method used in these cases. Then there are also autosave issues if you intend to support autosave in your app... HTH, Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" ___ Cocoa-dev mailing list (Cocoa-

Re: View based NSTableView bounds to NSArrayController bounds to NSUserDefaultsController

2017-02-06 Thread Keary Suska
situation, IMHO, is to have some intermediary or user-driven event (like a “commit” button) that “tricks” the defaults controller into thinking the entire array has changed when you need to it see changes to individual elements. HTH, Keary Suska E

Re: On NSIncrementalStore UUID Uniqueness

2017-01-11 Thread Keary Suska
ould be unique to a specific database since it is only unique to the URL location of the store. I thin the docs use “instance” in a strictly OOP sense. HTH, Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" __

Re: On NSPersistentStore Modeling

2017-01-10 Thread Keary Suska
nt a generic way of translating the MOM into the store’s storage method, which is really the correct way to implement an NSPersistentStore subclass. HTH, Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business"

Re: Connecting NSTextStorage to a string

2016-12-23 Thread Keary Suska
ught with error. Much easier to simply set the content of the NSTextView on load (in windowDidLoad or whatever is apropos for your setup), and then let the NSTextView manage the content until editing has been committed, at which time you pull the plain string out and set your model property. HT

Re: Checkbox Mayhem

2016-12-18 Thread Keary Suska
y “they aren’t being saved”, even with “not using X or Y”. Say exactly how you are persisting as there are at least four common persistence methods (Archiving, User Defaults, Document-based, Core Data). HTH, Keary Suska Esoteritech, Inc. "Demystifyin

Re: Releasing properties?

2016-08-27 Thread Keary Suska
> On Aug 27, 2016, at 8:22 AM, じょいすじょん > wrote: > > >> On 2016 Aug 27, at 23:09, Keary Suska wrote: >> >>> >>> On Aug 27, 2016, at 5:22 AM, Andreas Falkenhahn >>> wrote: >>> >>> Consider the following example pro

Re: Releasing properties?

2016-08-27 Thread Keary Suska
l never do this. One could even argue (and some have) that there is no good reason for *any* object method to return a retained object, as that forces the caller to explicitly require ownership. And that is key: ownership is a function of the caller, not the object. HTH, Keary Suska Esoterite

Re: runModalForWindow() doesn't re-activate former window upon return

2016-08-26 Thread Keary Suska
t anymore. May be worth filing a radar on the subject. In any case, you will miss large chunks of necessary information if you only refer to the class documentation. The “programming topics” docs are required reading. HTH, Keary Suska Esoter

Re: runModalForWindow() doesn't re-activate former window upon return

2016-08-26 Thread Keary Suska
ate a window that doesn't belong to > my application when it returns? That doesn't look reasonable to me at all... Apparently not: https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/Sheets/Tasks/UsingAppModalDialogs.html Keary Suska Esoteritech, Inc. "

Re: runModalForWindow() doesn't re-activate former window upon return

2016-08-25 Thread Keary Suska
gt; exactly the same before runModalForWindow() is called. What are they *after* the modal loop has ended? What happens if you add -orderOut: to the button action method? HTH, Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" __

Re: Need some NSComboBox debugging help

2016-08-05 Thread Keary Suska
you expect the delegate to be destroyed, and outlets/properties of combo boxes to nil when they are expected to be destroyed. HTH, Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" ___ Cocoa-dev mailing lis

Re: NSTableView Drag/Drop - Which Column?

2016-07-23 Thread Keary Suska
ion method have you tried calling [NSEvent mouseLocation] and then using -columnAtPoint: to determine which column the pointer is at? Noting that +mouseLocation provides screen coordinates, so they will need to be converted. HTH, Keary Suska Esoteritech, Inc. "Demystifyin

Re: Property synthesis trouble - 32 vs 64 bit builds

2016-07-05 Thread Keary Suska
// On 64-bit builds I get an error here: >// "Property 'myFlag' attempting to use instance variable '_myFlag' > declared in super class 'ImmutableSettings'" >@synthesize myFlag = _myFlag; > #endif HTH, Keary Suska Esoteritech, Inc. "Demy

Re: Security with Streams

2016-06-26 Thread Keary Suska
1-5 years anyway) but the server can still be correctly authenticated. 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

Re: Security with Streams

2016-06-26 Thread Keary Suska
e what they get will not be decipherable unless they are who they say they are.” This can be followed up with the fact that all electronic communications are intercept-able, so the approach is to make the information as undecipherable as possible since there is no way to prevent interception.

Re: Selected value binding in popups

2016-06-16 Thread Keary Suska
liat mutator methods on the content array rather than replacing it entirely. HTH, Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Bind NSTableView to array of dictionaries in user defaults

2016-05-06 Thread Keary Suska
on between view-based tables and NSUserDefaultsController. I would file a radar, FWIW. 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: Bind NSTableView to array of dictionaries in user defaults

2016-05-05 Thread Keary Suska
y does not observe changes to its elements. This is curious—how do you know that the attribute is being changed as expected? Is it that it shows in the UI, but is not persisted? Have you changed the default value of -[NSUserDefaultsController appliesImmediately]? Keary Sus

Re: Triggering UITableView's -didSelectRowAtIndexPath: delegate callback

2016-02-29 Thread Keary Suska
> On Feb 28, 2016, at 11:05 PM, Jens Alfke wrote: > > >>> On Feb 27, 2016, at 4:27 PM, Keary Suska >>> mailto:cocoa-...@esoteritech.com>> wrote: >>> >>> This results in a much more reliable and extensible decoupling since no >>>

Re: windowDidLoad getting called twice?

2016-02-28 Thread Keary Suska
g > the second call is when I add subviews to the Content View….. As I understand, no. No need to guess—set a break point and know. HTH, Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" ___ Cocoa

Re: Triggering UITableView's -didSelectRowAtIndexPath: delegate callback

2016-02-27 Thread Keary Suska
other object should know those internal signaling mechanics and should have confidence that any other object interested in the selection will be dutifully notified. In fact, this is how NSTableView works. Why UITableView doesn’t, seems worthy of a radar. Best, Keary Suska Esoteritech, Inc. &

Re: Archive/Unarchive Problem - Bug in MacOSX/Cocoa?

2016-02-05 Thread Keary Suska
bject exists. Therefore If any of its child objects reference it, how can the coder know which object to use? I don’t know how, or if, NSKeyedUnarchiver handles this situation. You may have to handle it yourself—i.e. do not encode “parent” properties and instead set the property value in the pare

Re: Easier way to make NSView subclasses refresh on a property change?

2016-02-03 Thread Keary Suska
a single property, say a BOOL “refresh”, observe that property, and then use +keyPathForValuesAffectingKey to notify the observer. In your case the observer would call setNeedsDisplay: or whatever was needed. HTH, Keary Suska Esoteritech, Inc. "Demystifying technology for your home or busines

Re: NSTableView: Rows from bottom up

2015-08-31 Thread Keary Suska
you add an object, i.e. -add: vs -insert:, as well as any sorting settings. Using -add: should always append to the end of the collection as long as it is unsorted or does not re-sort automatically. If you use your own method to add new objects, you can do whatever you want. No need to customize

Re: NSUndoManager.prepareWithInvocationTarget:

2015-05-10 Thread Keary Suska
ar, although I am not up to date with compilers, I am pretty sure you (still) cannot use dot notation to invoke methods that take parameters, so you must use bracket syntax: [NSUndoManager prepareWithInvocationTarget: aTarget] HTH, Keary Suska Esoteritech, Inc.

Re: setting table view rows and columns?

2015-03-13 Thread Keary Suska
ou're sure you have an NSTableColumn selected, not Table View Cell that's in > the column? Both have a Title field in the inspector. Also make sure that that "headers" is checked in the table view attributes inspector, or the headers won't be exposed to set in the first

Re: removeObserver:forKeyPath:context: fails; but removeObserver:forKeyPath: works?!

2015-03-10 Thread Keary Suska
ntroller removeObserver:forKeyPath:context: calls > removeObserver:forKeyPath:, no? > > Any clues would help... :) Have you checked observationInfo at each point to ensure that observation is being added/removed exactly as you expect? HTH, Keary Suska Esoteritech, Inc. "Demystifyin

Re: Create a NSURL as a way to validate urls - not working

2015-03-02 Thread Keary Suska
at easily with a regular expression match, such as (written in email): ^http://(?:[a-z0-9-]+\.){1,}[a-z]{2,4} HTH, Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" ___ Cocoa-dev mailing list (Cocoa-dev@l

Re: Inconvenient exception impossible to get rid of?

2015-03-02 Thread Keary Suska
g over-zealous about > asserting that it has a controller, even though it doesn't need one once the > popover is dismissed? > > I'm at a loss as to how to sort this problem out - the closure block for the > popover is invoked automatically, not by my co

Re: -beginSheet:modalForWindow:modalDelegate:didEndSelector

2015-02-20 Thread Keary Suska
Anotehr checkbox to check: is "restorable" unchecked? If not, the system may be trying to restore your sheet as a regular window and something is getting bunged up. HTH, Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" __

Re: -beginSheet:modalForWindow:modalDelegate:didEndSelector

2015-02-20 Thread Keary Suska
Window] return a non-nil value at the point the code is invoked? 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

Re: Detecting Managed Object Property Change From Undo Redo

2015-01-27 Thread Keary Suska
On Jan 27, 2015, at 9:52 AM, Jerry Krinock wrote: > >> On 2015 Jan 27, at 06:46, Keary Suska wrote: >> >> Better, however, to have a property declaration, which would also synthesize >> an ivar in modern LLVMs (as of Xcode 5?). > > You mean the property decl

Re: NSTableCellView Constraints?

2015-01-27 Thread Keary Suska
the constraints > between the cell view and the column view properly. Apparently not. Is this a > known Swift/Cocoa bug or IB bug? Does anyone know the proper workaround? I am > running Xcode 6.2 beta 4. Well, constraints are fully inspectable. What do they show? Keary Suska Esote

Re: Detecting Managed Object Property Change From Undo Redo

2015-01-27 Thread Keary Suska
s really hard to break anything unless you deliberately do so (or deliberately ignore compiler warnings). HTH, Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" ___ Cocoa-dev mailing list (Cocoa-dev@lists.ap

Re: Binding to a view's model object

2015-01-25 Thread Keary Suska
On Jan 25, 2015, at 6:07 PM, Roland King wrote: > >> On 25 Jan 2015, at 23:15, Keary Suska wrote: >> >> On Jan 25, 2015, at 3:34 AM, Roland King wrote: >> >>> I have a xib with a top-level view and a bunch of subviews which represents >>> on

Re: Binding to a view's model object

2015-01-25 Thread Keary Suska
ndings-friendly. > Is there a way to do these bindings? Can it be done in IB if so or do I need > to call bind:toObject:withKeyPath:options: Is there some other object I could > put in the NIB which would intermediate this for me? Well, it's hard to say since you haven't listed the

Re: Cursor above siblings

2015-01-09 Thread Keary Suska
ou either need to embed the button in the text content or use some sort of an overlay window. HTH, Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: Am I Reinventing the Wheel? (Part I)

2015-01-08 Thread Keary Suska
akeRange(0, s.length) documentAttributes:documentAttributes error:NULL]; NSString *htmlString = [[NSString alloc] initWithData:htmlData encoding:NSUTF8StringEncoding]; HTH, Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" ___

Re: Observing changes in Table

2014-12-17 Thread Keary Suska
ecall having some issue with this a while ago, but I don't recall. If you get correct values from -editedRow and -editedColumn, and can then map column indexes to keys, you might be fine. HTH, Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" ___

Re: Opening an Embedded Application in Terminal

2014-12-07 Thread Keary Suska
--you get a lot of control simply from delegate calls, although you will need to subclass. The only tricky part is how to handle the parts that would not be editable, and what to do when someone tries to edit it. Setting a custom attribute is probably the way to go. HTH, Keary Suska Esoteritech,

Re: Predicate Row Template array within array

2014-11-30 Thread Keary Suska
ndefinedKey:]: this class is not key > value coding-compliant for the key word. > > But it is. Notice that the object being queried is an NSString, and not the expected "word" object. This either means that your "words" array contains at least one plain NS

Re: Trouble getting ISO-8859-1 encoded feed to parse and display

2014-11-23 Thread Keary Suska
opy]]; >self.xmlItems = [NSMutableArray array]; >NSXMLParser *parser = [[NSXMLParser alloc] > initWithData:self.dataContainer]; >[parser setDelegate:self]; > [parser parse]; > } > > > I validated the feed’s XML and got no errors.. HTH, Keary Suska Esoteritech, Inc

Re: Deconstructing Text Tables

2014-11-18 Thread Keary Suska
now. You may need to keep meta-data about constructed tables. 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

Re: NSSplitView divider tracking-area

2014-10-30 Thread Keary Suska
has chosen to track only when the window is key. You may be able to access the tracking area via the -trackingAreas method and swap it out with one of your own creation, but that is pretty hacky and probably volatile. HTH, Keary Suska Esoteritech, Inc. "Demystify

Re: Setting the Selected Segment of a Segmented Control

2014-10-15 Thread Keary Suska
gt;> Daniel Blakemore >>> Pixio Software >>> ___ >> >> > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or modera

Re: NSPopover tear-off problem

2014-10-13 Thread Keary Suska
d origin (0,-8) and I had to override setFrame: to correct it. This might have been a 10.7 bug, as I haven't tested it since. There may be a way with auto layout-based animations, but I haven't the wherewithal to pursue it. HTH, Keary Suska Esoteritech, Inc.

Re: Questions on using a NSTextView as a source viewer.

2014-10-11 Thread Keary Suska
I thought you didn't want those either. 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 t

Re: Questions on using a NSTextView as a source viewer.

2014-10-11 Thread Keary Suska
able. The binding option is overriding the attribute you set. Turn >> it off. > > I thought you meant the “Editable” attribute under “Availability.” I haven’t > activated that Binding at all. But now I see you meant the C.S.E. option > under the Binding I did make. That optio

Re: Table of TextViews

2014-10-09 Thread Keary Suska
(possibly by NSTextView delegate method or notification) that the text view size needs to change. Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) P

Validate NSDocument on Quit

2014-10-05 Thread Keary Suska
with the "Ask to keep changes" preference. Has anyone figured out how to trap closing to prevent saving possibly invalid data? TIA, Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" ___ Cocoa-dev mai

Re: A Stack of Editors

2014-10-05 Thread Keary Suska
suggestion of a vanilla NSScrollView, especially if you are dealing with fixed numbers of "rows". You can have pre-made NSViews that you can swap in and out as its document view. The other types of views (NSTableView, NSStackView, NSCollectionView) are really for dealing with arbitr

Re: A Stack of Editors

2014-10-04 Thread Keary Suska
at? View-based NSTableView? There is a way that you can "tickle" the table view into resizing the row although you will have to figure out how and when to determine the appropriate size. Another problem to watch put for is whether resizing ends the editing session. HTH, Keary Suska Esote

Re: return string that is the difference between two other strings

2014-09-20 Thread Keary Suska
ring; >>> } >>> >>> NSArray *fa = [longest componentsSeparatedByString: @" " ]; >>> NSArray *sa = [shortest componentsSeparatedByString: @" "]; >>> NSMutableArray *remainder = [NSMutableArray arrayWithArray:fa]; >>> [remainder removeObjec

Re: Still need help with Services. Is there sample code?

2014-09-18 Thread Keary Suska
it. At this point, you are probably just looking at a UTI issue. Standard UTI's are documneted in the UTCoreTypes.h header. I don't know if they are documented elsewhere. Simply open terminal and execute "locate UTCoreTypes.h" to find the various headers. Keary Suska Esoteri

Re: Still need help with Services. Is there sample code?

2014-09-16 Thread Keary Suska
e > referenced post was > <http://lists.apple.com/archives/Cocoa-dev/2009/Sep/msg00201.html>. I am not sure how you are googling, but I found a solution as the first hit. I always do full phrase searches on error messges for best results. See this: http://lists.apple.com/archives/coc

Re: Binding Exception

2014-09-15 Thread Keary Suska
kpoint catches before the exception would be logged to console. Simply keep clicking the "continue" button in the debugger until it outputs the exception. Then read the Key-Value Coding guide on when setNilValueForKey: is called and ho

Re: Responder Chain Confusion

2014-09-07 Thread Keary Suska
n in a menu, say, then see whether it is handled. If it is not, I would file a bug, because I cannot reproduce this behavior. Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" ___ Cocoa-dev mailing list (Coc

Re: NSTextAlignment Enum?

2014-09-01 Thread Keary Suska
On Sep 1, 2014, at 9:28 AM, Keary Suska wrote: > On Sep 1, 2014, at 4:51 AM, Dave wrote: > >> I have a method that takes a String and depending on it’s value needs to >> return an NSTextAlignment type. However, if the string is invalid, then I >> want to indicate

Re: NSTextAlignment Enum?

2014-09-01 Thread Keary Suska
aving a method: - (BOOL)parseTextAlignment:(NSTextAlignment *)alignPtr is a smarter way to go (IMHO). Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Ple

Re: Printing onto custom paper (filling in forms)

2014-08-28 Thread Keary Suska
On Aug 28, 2014, at 8:56 AM, Ben wrote: > > On 28 Aug 2014, at 15:01, Keary Suska wrote: > >> On Aug 28, 2014, at 7:20 AM, Ben wrote: >> >>> I'm trying to make a tool for myself to fill in some repetitive forms. >>> They've got a custom

Re: Printing onto custom paper (filling in forms)

2014-08-28 Thread Keary Suska
orms/Transforms.html#//apple_ref/doc/uid/TP40003290-CH204-SW5 This guide is important to read as well. Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Pleas

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 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 to a

  1   2   3   4   5   6   7   8   >