Re: Debugging NSWindowController and NSArrayController

2012-04-11 Thread Keary Suska
the array controller to -fetch:? 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: Debugging NSWindowController and NSArrayController

2012-04-11 Thread Keary Suska
MOC that you use in your -init and -windowDidLoad? On 11 April 2012 19:12, Keary Suska cocoa-...@esoteritech.com wrote: On Apr 11, 2012, at 7:04 AM, Rui Pacheco wrote: Hi, I have an NSWindowController that creates an instance of NSManagedObjectContext. That window controller loads

Re: recalculateKeyViewLoop doesn't work

2012-03-29 Thread Keary Suska
to resolve it? -recalculateKeyViewLoop is in fact ding what it is supposed to. You call this method to have the system determine the key-view loop for you. If you want your own ordering, that is not geometrical, you need to avoid -recalculateKeyViewLoop. HTH, Keary Suska Esoteritech, Inc

Re: Disable PDFView context menu

2012-03-26 Thread Keary Suska
context menu displayed instead... I suspect you need to override +defaultMenu or -menuForEvent:, depending on what you need to accomplish. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list

Re: Disable PDFView context menu

2012-03-26 Thread Keary Suska
down (NSRightMouse). (Haven't tried this myself though.) AFAIK you shouldn't get a mouseDown call for a right click, only a left click, but you can verify that with breakpoint. It is likely the event is being filtered out higher in the event handling chain... HTH, Keary Suska Esoteritech

Re: Disable PDFView context menu

2012-03-26 Thread Keary Suska
shouldn't get a mouseDown call for a right click, only a left click, but you can verify that with breakpoint. It is likely the event is being filtered out higher in the event handling chain... HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: NSMatrix, NSForm - addRow - why above and not below?

2012-03-13 Thread Keary Suska
artifacts. You may use -selectTextAtIndex: to set focus on the new form field, which will avoid the drawing issues (maybe a little more functional than just calling -setNeedsDisplay:). HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: Finding object array index when iterating through array

2012-03-07 Thread Keary Suska
to track that yourself. If you need the index a lot of the time, then do an iterated loop. If you need it rarely, just look it up using -indexOfObject:. Either way, the performance difference is probably negligible. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home

Re: textfield problem

2012-03-02 Thread Keary Suska
in the right direction? Do you have a value binding for the field? If so, is Conditionally sets editable checked? Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: HELP!! Big problem with relationships and saving in iOS core data

2012-03-01 Thread Keary Suska
or through B, and B likewise trough A? Or, if all objects are new, are you properly adding each object to the relationship (that also doesn't happen automatically, although properly bound NSArrayControllers will do this for you)? HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your

Re: Who is responsible for removing observers in longer key paths

2012-03-01 Thread Keary Suska
this issue by putting an NSObjectController in the xib whose purpose is to manage the PBH_ParameterInfo object, and change its content when you need to change the object. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: HELP!! Big problem with relationships and saving in iOS core data

2012-03-01 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: How do IB inspector fields relate to the actual objects?

2012-02-29 Thread Keary Suska
their own docs. Look into the constants section of the NSPanel Objective-C reference. 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: Question about KVC-compliance and bindings

2012-02-28 Thread Keary Suska
of premature optimization? Why not just have the whole tree in memory? Overriding KVC methods is rarely a good way to go, especially if performance is a concern. If you want dynamism and scalability, you have a good case for using Core Data. HTH, Keary Suska Esoteritech, Inc. Demystifying technology

Re: Question about KVC-compliance and bindings

2012-02-28 Thread Keary Suska
On Feb 28, 2012, at 11:46 AM, Mike Abdullah wrote: On 28 Feb 2012, at 17:05, Keary Suska wrote: I find it more useful to focus on KVO (Key Value Observing) compliance rather than KVC compliance, as although KVC compliance ensures KVO compliance, the reverse is not always true. Whoah

Re: Question about KVC-compliance and bindings

2012-02-28 Thread Keary Suska
by the UI. In fact, it needs to, and in fact does when you establish a binding. It is simply abstract enough that it is easy to forget ;-) Best, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list

Re: sudden errors

2012-02-27 Thread Keary Suska
is actually cascading from other errors from an included file. I would eliminate all other warnings/errors first. It would also help to see the contents of both the ViewManager.h and one of the .m files that imports it and reports the error. Best, Keary Suska Esoteritech, Inc. Demystifying

Re: text field question

2012-02-24 Thread Keary Suska
. I would commit any values being entered when the panel loses key focus, via the delegate method -windowDidResignKey: or listening for NSWindowDidResignKeyNotification. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: [Obj-C] if (self) vs. if (self != nil)

2012-02-24 Thread Keary Suska
issues with BOOL types, such that BOOL == YES is an inadvisable construct, since your BOOL could be an integer of any value. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev

Re: NSStepper - useless?

2012-02-23 Thread Keary Suska
does is increment or decrement a numeric value. That's it. If you keep track of the last value set, you can determine whether the value went up or down, which would indicate which button was pressed. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: Dumb question about radio buttons

2012-02-23 Thread Keary Suska
is? Maybe it is the matrix, and not the cell? Am I supposed to connect the NSMatrix to the action, and not the individual cells? If so, how do I ask for the cell's tag value? Considering that the sender is the NSMatrix: [[sender selectedCell] tag] HTH, Keary Suska Esoteritech, Inc

Re: Was: Re: NSStepper - useless?

2012-02-23 Thread Keary Suska
-entry field. It's the developer's responsibility (IMHO) to set data entry constraints. 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

Re: NSPopUpButton not accepting setMenu: from WindowController code

2012-02-18 Thread Keary Suska
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. Contact

Re: Odd display of percent character

2012-02-13 Thread Keary Suska
and then showing it in octal. Normally you would get a warning about this, unless you don't have decent warnings set... HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: How to show last name of user in text field whose first name is selected in popup button

2012-02-03 Thread Keary Suska
actually be better if your selectionValue was the dictionary object that contains the names, which is really the logical selection object. You can keep the above bindings except unbind contentObjects and change the NSTextField binding to AppDelegate - selectionValue.lastName . HTH, Keary Suska

Re: NSPopUpButton Binding Frustration

2012-01-30 Thread Keary Suska
contentValues - fileTypes.name selectedObject - fileType You will notice that it works. Note that you may also be able to use an NSDictionaryController to simplify the code. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: Key Value Observing of NSMutableArray inside an object

2012-01-28 Thread Keary Suska
/Conceptual/KeyValueCoding/Articles/AccessorConventions.html#//apple_ref/doc/uid/20002174-178830-BAJEDEFB HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: NSTask terminates when NSApplication exits

2012-01-19 Thread Keary Suska
On Jan 18, 2012, at 2:27 PM, Ken Thomases wrote: On Jan 18, 2012, at 3:13 PM, Keary Suska wrote: Any special handling of NSTask aside, Mac OS X uses Unix-based process control which closes all child processes when the parent is closed. No, that's not true. Where did you get

Re: NSTask terminates when NSApplication exits

2012-01-18 Thread Keary Suska
/Introduction.html HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa

Re: Core Data : Correct way to force reading property from sql store?

2012-01-15 Thread Keary Suska
] ; By the way, oldStaleness is the default value of -1.0. Is there a better way? It seems like gimme the latest value of object.foo from the disk shouldn't be so hard. If all you read is the first line of that documentation [1], you think that it is easy! Keary Suska Esoteritech, Inc

Re: Is slowing down bindings updates possible?

2012-01-13 Thread Keary Suska
could use BSD sockets and control the data buffering to force consistency. 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: MVC Theory Question

2011-12-28 Thread Keary Suska
properly a task to be assigned to a controller class? I would give a qualified yes. Usually this is the case--key-value validation exists for this purpose. Now, it is common to use formatters for validation as well, which doesn't violate MVC. HTH, Keary Suska Esoteritech, Inc. Demystifying

Re: How to disable clicking parent menu item without disabling it?

2011-12-26 Thread Keary Suska
- Recent - ...Recent files list , I can press Recent. I want to prevent pressing Recent. Can I do it? I don't know if I understand you correctly but any menu item without a target/action will do nothing when clicked, unless it has a sub-menu in which case it reveals its submenu. HTH, Keary

Re: How to get the phone number use ios sdk in iphone.

2011-12-22 Thread Keary Suska
agreement about how you need to ask for this kind of information and how you use it. Misuse could get you permanently banned. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev

Re: KVO Setting a flag for any property change

2011-12-14 Thread Keary Suska
-compliantly. You mat want to check the flag to avoid unnecessary KVO calls. 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: predicates and sort descriptors for NSFetchRequest - documentation is a bit vague

2011-12-14 Thread Keary Suska
should due to these guidelines you should file a radar. The sort descriptor issue may be how you are specifying the descriptor. It may look at key paths differently, so you may need to experiment with different keys (think SQL rather than KVC). HTH, Keary Suska Esoteritech, Inc. Demystifying

Re: predicates and sort descriptors for NSFetchRequest - documentation is a bit vague

2011-12-14 Thread Keary Suska
as the key? Another option is passing B.b as the key. 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: KVO Setting a flag for any property change

2011-12-14 Thread Keary Suska
not be obvious to some... Andre Masse Keary Suska mailto:cocoa-...@esoteritech.com December 14, 2011 10:56 This kind of approach is probably best unless you can base your superclass on NSManagedObject, which does this automatically. But, as you find, there is some difficulty. I would have a pseudo

Re: Business as usual: Flipped context causing grief

2011-12-12 Thread Keary Suska
.. I think all you need is to implement isFlipped returning YES. 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: Business as usual: Flipped context causing grief

2011-12-12 Thread Keary Suska
On Dec 12, 2011, at 6:07 PM, Graham Cox wrote: On 13/12/2011, at 12:00 PM, Keary Suska wrote: IIRC, NSLayoutManager expects that the view it is drawing in is flipped It expects the CONTEXT it is drawing into is flipped, and in order to do that it asks the CONTEXT the value

Re: How to Display Images in a WebView

2011-12-02 Thread Keary Suska
? If the image is in memory, you can use -loadData:MIMEType:textEncodingName:baseURL: on the WebView's main frame. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: How to force WebView to use a separate NSHTTPCookieStorage ?

2011-12-01 Thread Keary Suska
On Nov 30, 2011, at 9:23 AM, Ben wrote: On 30 Nov 2011, at 15:22, Keary Suska wrote: On Nov 30, 2011, at 7:48 AM, Ben wrote: On 30 Nov 2011, at 14:24, John Joyce wrote: On Nov 30, 2011, at 8:11 AM, Mike Abdullah wrote: On 30 Nov 2011, at 12:00, Ben wrote: I am writing an app which

Re: How to force WebView to use a separate NSHTTPCookieStorage ?

2011-11-30 Thread Keary Suska
and less error prone. You may also want to consider *why* the site is doing this. They may be using window names or id's that must be unique for the site to function properly, and circumventing it could cause unexpected issues. HTH, Keary Suska Esoteritech, Inc. Demystifying technology

Re: How to highlight the current line in NSTextView?

2011-11-06 Thread Keary Suska
:. That should at least get you close if it doesn't do the trick. Also, if you didn't notice from another responder, you can get the appropriate NSLayoutManager from the NSTextView itself. HTH, 2011/11/4 Keary Suska cocoa-...@esoteritech.com On Nov 4, 2011, at 7:19 AM, Nick wrote: Hello

Re: Prevent table sorting

2011-10-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: 2nd table array linked to 1st table selection, updating

2011-10-21 Thread Keary Suska
make to the returned array will be propagated appropriately. Best, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Custom NSArrayController that manages its own array?

2011-10-18 Thread Keary Suska
collection KVC stuff is unnecessary. In your subclass you could use the machinery afforded by automaticallyPreparesContent, or simply set the content on awakeFromNib or whenever it is needed. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: Custom NSArrayController that manages its own array?

2011-10-18 Thread Keary Suska
On Oct 18, 2011, at 5:16 PM, Jens Alfke wrote: On Oct 18, 2011, at 11:59 AM, Keary Suska wrote: In your subclass you could use the machinery afforded by automaticallyPreparesContent, or simply set the content on awakeFromNib or whenever it is needed. Hm. So in other words I would

Re: NSArrayController Update Delay

2011-10-13 Thread Keary Suska
could chance manually turning the runloop but it is fragile and generally recommended against. Best, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: NSArrayController Selection and Managed Object Context Undo

2011-10-06 Thread Keary Suska
, perform the operation, then close the group. This should cause the undo to restore selection. Of course, this is theory, as I haven't had to actually do it, and more experienced Core Data wranglers may have more to add. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home

Re: combining two entities to one binding

2011-10-02 Thread Keary Suska
On Oct 2, 2011, at 6:05 AM, Koen van der Drift wrote: On Oct 1, 2011, at 3:09 PM, Keary Suska wrote: Not specifically for NSTextView. Text fields have the value with pattern bindings, but no such luck for text views. In such cases I generally have a dynamic property of a model object

Re: combining two entities to one binding

2011-10-01 Thread Keary Suska
and +keyPathsForValuesAffectingKey. 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: controller question

2011-09-27 Thread Keary Suska
retrieve the array contents when you need it as well... 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: NSArrayController and NSTableView

2011-09-19 Thread Keary Suska
the question... Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa

Re: Windows and views and controls, oh my!

2011-09-05 Thread Keary Suska
controllers. The Mac OS X equivalent (NSViewController) is another animal altogether. Specific to your question you are interested in NSWindowControllers. There is also no root controller class such as in iOS. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: Core Data to many relationship deletion causing exception

2011-08-16 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: Strange NSZombie occurring

2011-08-07 Thread Keary Suska
start and changeWords:. I'd appreciate some help. How do you know this? based on your code this statement cannot be the case. Debugger is your friend... Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev

Re: CoreData I/O error for database: no such table

2011-08-05 Thread Keary Suska
in the database to what the new model compiler generates. 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: Question about sending to PHP from Obj-C

2011-08-04 Thread Keary Suska
URLWithString: urlString]; 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: NSNumberFormatter documentation error?

2011-07-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: Problem in coming out of modal run loop

2011-07-25 Thread Keary Suska
implementation, but I would also add that modal windows generally shouldn't have close boxes and should have a cancel/OK button approach instead. Back in the game, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: Cocoa based Data Model dilemna

2011-01-27 Thread Keary Suska
without having redundant data. 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: Odd Crash when adding table columns manually

2011-01-12 Thread Keary Suska
can see that the retain count is 2. Can anyone shed some light on what might be going on here and why it is crashing? (if it matters, I am still running on 10.6.5) Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: NSTableView with ArrayController bindings not updating?

2011-01-02 Thread Keary Suska
, especially how table views are bound to array controllers. 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: assign property behaves differently from simple instance variable???

2010-12-14 Thread Keary Suska
On Dec 13, 2010, at 12:01 PM, Matt Neuburg wrote: self-firstResponder = tf; Well, the proper syntax is self.firstResponder . Using the deference is probably a back-door way to access the class struct. Unless I misunderstand something Keary Suska Esoteritech, Inc. Demystifying

Re: Interprocess Communication (IPC) : Which technology to use?

2010-12-07 Thread Keary Suska
is heavy and distributed notification are unreliable (per the documentation). In both cases you may need code to ensure reliability. Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev

Re: Asking an outline/table view to send it's setObjectValue:... message

2010-11-22 Thread Keary Suska
the outline view to send it's - (void)outlineView:(NSOutlineView *)outlineView setObjectValue:(id)object forTableColumn:(NSTableColumn *)tableColumn byItem:(id)item message? Have you tried reloadItem: or setNeedsDisplayInRect: ? Keary Suska Esoteritech, Inc. Demystifying technology for your home

Re: readonly property which is a mutable array

2010-11-19 Thread Keary Suska
On Nov 18, 2010, at 7:51 PM, Ken Thomases wrote: On Nov 18, 2010, at 9:33 AM, Keary Suska wrote: On Nov 18, 2010, at 5:35 AM, Remco Poelstra wrote: Hi, I've a object like to following: @interface Proto { NSMutableArray *items; } @property (nonatomic,readonly) NSMutableArray

Re: readonly property which is a mutable array

2010-11-18 Thread Keary Suska
*, and implement the getter with [[array copy] autorelease] or similar. You don't have much choice if you want a public immutable, but private mutable. Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev

Re: RTFDFromRange returns different data

2010-11-13 Thread Keary Suska
/uid/20001055-BCICFFGE Unless there is something else you are referring to... 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: Irregular layout of radio buttons

2010-11-08 Thread Keary Suska
(mimicking radio ones) and simulate radio behavior in my controller, is that right? Well, kind of. You can still use radio buttons--you will simply have to mimic the radio effect across the unrelated buttons. Not difficult really... Keary Suska Esoteritech, Inc. Demystifying technology

Re: won't work call from uitableview cell

2010-11-04 Thread Keary Suska
to extract the relevant portion manually. 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: Resizable NSTabView

2010-11-04 Thread Keary Suska
NSTabView height? No, and there is no API call to do this for you either. You have to do all the resizing yourself via code, and watch out for overlapping view gotchas. Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: Why would [NSArrayController setSelectionIndex] fail?

2010-10-27 Thread Keary Suska
? Note that if a table view is bound to the controller, its delegate must approve the selection change as well. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Make NSTextField register changes immediately

2010-10-26 Thread Keary Suska
. No effect. Check Validates Immediately on the binding. No effect. You didn't think to check Continuously updates value in binding options? Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list

Re: [Q] Using NSInvocation vs. selector with NSTimer

2010-10-18 Thread Keary Suska
of using invocations is to permit the timer to call any method whatsoever, regardless of the method signature. Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: NSRegularExpression only finds a single occurrence of my match

2010-10-17 Thread Keary Suska
what I might be getting wrong? options: *NSRegularExpressionCaseInsensitive* 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: Loading a Nib file

2010-10-16 Thread Keary Suska
be a retain cycle with the File's Owner. As long as you do not bind to File's Owner, or have retained outlets to same, the objects created from the nib will almost always get released. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: Smooth scrolling in NSScrollView

2010-10-15 Thread Keary Suska
, or display of a table view or whatever? 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: main window disappears on resize

2010-10-12 Thread Keary Suska
the problem go away? I think I came across a problem where max values were being set to 0, even when unchecked in IB. Bummer, that didn't work either. Thanks though. May also be a corrupt xib--have you tried deleting/recreating the window? Keary Suska Esoteritech, Inc. Demystifying

Re: main window disappears on resize

2010-10-11 Thread Keary Suska
. And if you set the max values, does the problem go away? I think I came across a problem where max values were being set to 0, even when unchecked in IB. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa

Re: Trouble binding against transient Core Data property

2010-10-11 Thread Keary Suska
behavior if it acts as if it does. Instead, you can register for NSViewFrameDidChangeNotification (see also -setPostsFrameChangedNotifications:). HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing

Re: NSDictionary setValue KVO

2010-10-10 Thread Keary Suska
this without the willChange/didChange ? Shoudln't the setValue call, fire a KVO message? NSDictionary does not emit any notices when the collection itself is mutated, or when keys change. Have you tried using an NSDictionaryController instead? HTH, Keary Suska Esoteritech, Inc. Demystifying

Re: clarifications about coredata sub to-many entities fetching

2010-10-09 Thread Keary Suska
the feeling that one can use a coredata hierarchy almost as directly as if it was a plain object hierarchy, but I'd like to make sure I'm not missing something along the way ! Yes--you can. That is really the point of Core Data. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your

Re: reused tableViewCell UILabel text is deallocated but not nil ??

2010-10-07 Thread Keary Suska
instance 0x17c370 Since I'm not handling the cell's contents myself, I don't understand how the textLabel can become garbage. the text field is supposed to be copied on assignement... Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: How to get selected text in a WebView

2010-10-04 Thread Keary Suska
there. The first thing I would try is use NSAttributedString to convert the HTML. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Interacting Sizes of NSScrollView and its NSClipView and a Custom NSView

2010-10-04 Thread Keary Suska
look nice and neat, with the scroll bars going inactive at the exact point where the window stops growing, but I'd rather have the floating behavior. Can anyone offer any advice? Yes: http://lmgtfy.com/?q=center+view+in+nsscrollview Keary Suska Esoteritech, Inc. Demystifying technology

Re: Changing classes

2010-09-30 Thread Keary Suska
]; // owned only by dict ... // now you know the specific hw properties USBHardware *usbHardWare = [[USBHardware alloc] init]; [someDictionary setObject: usbHardWare forKey:@newHardware]; [usbHardWare release]; HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: Background-Task (Timer)

2010-09-29 Thread Keary Suska
are not permitted. If your app isn't rejected by Apple outright, your app will be force terminated by the OS anyway after the max time is reached. You can read more about this in the IOS Human Interface Guidelines. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: Converting an AttributedString into NSData for an NSTextView

2010-09-25 Thread Keary Suska
, there's no way around it. How do I convert an NSMutableString to NSData so it can be the data source for an NSTextView? NSTextView doesn't use NSData as its data source--it uses NSTextStorage. You can get its content as a mutable string using -mutableString and manipulate it. Keary Suska

Re: Converting an AttributedString into NSData for an NSTextView

2010-09-25 Thread Keary Suska
how NSTextStorage applies in this scenario. Maybe I'm skipping a step. What, specifically, don't you get? What method calls have you tried? Have you read the Attributed String Programming Guide? On Sep 25, 2010, at 11:28 AM, Keary Suska wrote: On Sep 25, 2010, at 9:12 AM, Brad Stone wrote

Re: NSRunLoop behavior

2010-09-22 Thread Keary Suska
that you cannot rely that the main run loop will return at all, as the system may attach input sources as part of its operation. That being said, run loop operations are synchronous, and you likely need to re-assess your entire approach. On 2010-09-21, at 9:54 AM, Keary Suska wrote: On Sep 21

Re: NSTableView display issue

2010-09-22 Thread Keary Suska
it's quite hard to see the lack of KVO compliance in your code, or even to know where to look for it. I'd recommend against thinking in terms of a flaw in 'reloadData' or 'setNeedsDisplay:'. Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: NSRunLoop behavior

2010-09-21 Thread Keary Suska
currentRunLoop] runUntilDate:[NSDate date]]; } NSLog(@success!); } 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: NSView resizing problems.

2010-09-20 Thread Keary Suska
] to return a sensible value? 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: merging instances of an entity

2010-09-18 Thread Keary Suska
at a time using -mutableSetValueForKey:, deciding on an object by object basis whether to add or not. Of course, all of this assumes a one-way update (versus a sync, which requires knowing additional state info). Keary Suska Esoteritech, Inc. Demystifying technology for your home or business

Re: sort an nstablecolumn to button cell state?

2010-09-17 Thread Keary Suska
the NSArrayController to handle sorting (and use NSTableView delegation), but I have never tried that so I can't say whether it will work. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list

Re: Make checkbox in table view uneditable

2010-09-14 Thread Keary Suska
such a binding). To prevent changing a button state (without significant subclassing) you must disable it. In this case, of course, we are talking about NSCells. Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev

Re: Pin NSScrollView documentView to Upper Left AND Pin Scrolling to Upper left

2010-09-07 Thread Keary Suska
On Sep 4, 2010, at 11:25 AM, Keary Suska wrote: I am trying to have NSScrollView behavior similar to, well, every other implementation of a view in an NSScrollView (e.g. NSTextView, NSTableView, etc.). Pinning my view to the upper left is easy using the view-within-an-isFlipped-view

Pin NSScrollView documentView to Upper Left AND Pin Scrolling to Upper left

2010-09-04 Thread Keary Suska
is pinned to the lower right. This seems to be due to the flipped contentView. Notes: 10.4 only; final document view must be an IB-built view/no custom drawing needed or wanted. I can't find any info on handling proper resizing. Any assistance/leads are appreciated... Keary Suska Esoteritech

<    1   2   3   4   5   6   7   8   >