Re: 10.11: NSDatePicker cuts off year digit

2015-11-11 Thread Markus Spoettl
On 10/11/15 18:26, Markus Spoettl wrote: This happens on 10.11 only, not on 10.10. Anyone able to confirm this using own code? Maybe something is set up incorrectly? Anyone know of a workaround until this gets fixed (yes, I will file a bug once it's confirmed that it's not my fault). Thanks

More AppleScript-ObjC Bridge Weirdness

2015-11-11 Thread Dave
Hi, I restarted my Mac and and added as string on the handler definition and it started working (not sure which of these helped): on getOutlookMessagePropertiesDictionaryWithMessageID:(theMessageIDString as string) say

AppleScript-ObjC Bridge Problem

2015-11-11 Thread Dave
Hi, I’m using the AppleScript-ObjC Bridge to call an AppleScript from an XCode Objective-C project. This is the handler I am calling: on getOutlookMessagePropertiesDictionaryWithMessageID:(theMessageIDString) set myDictionary to the pMessageDictionary of me

AppleScript-ObjC Bridge Problem

2015-11-11 Thread Dave
I tried adding the following: try set myMessageID to theMessageIDString as number on error errorMessage number errorNumber say errorNumber say errorMessage

Re: Stack View Question

2015-11-11 Thread mdeh
- Original Message - From: "Ken Thomases" To: "Michael de Haan " Cc: "Cocoa Developers" Sent: Wednesday, November 11, 2015 4:59:51 PM Subject: Re: Stack View Question On Nov 11, 2015, at 6:43 PM, Michael de

Customising NSFontManager

2015-11-11 Thread Graham Cox
According to the docs for NSFontManager: + setFontPanelFactory: Sets the class used to create the Font panel to the given class. Discussion Invoke this method before accessing the Font panel in any way, such as in the application delegate’s applicationWillFinishLaunching: method. I’m doing

Re: Detecting when a text view becomes First Responder

2015-11-11 Thread Dave Fernandes
Doh! It’s iOS. Wasn’t paying attention. > On Nov 11, 2015, at 6:16 PM, Graham Cox wrote: > > >> On 12 Nov 2015, at 10:12 AM, Dave Fernandes >> wrote: >> >> textFieldDidBeginEditing > > > Sounds promising, but I can’t find that anywhere

Set editable string into NSTextFieldCell

2015-11-11 Thread Raglan T. Tiger
In my cell based NSOutlineView subclass I implement -mouseDown where I check for double-click. I am able to set a placeholder string. How does one set the NSText object with a string value that can be edited? -rags ___ Cocoa-dev mailing list

Re: Set editable string into NSTextFieldCell

2015-11-11 Thread Graham Cox
> On 12 Nov 2015, at 7:19 AM, Raglan T. Tiger wrote: > > n my cell based NSOutlineView subclass I implement -mouseDown where I check > for double-click. I am able to set a placeholder string. > > How does one set the NSText object with a string value that can be

Detecting when a text view becomes First Responder

2015-11-11 Thread Graham Cox
I need to know when a text view becomes First Responder. I thought the notification NSTextDidBeginEditingNotification would do it, but that’s only sent when the user starts typing in the text view, which is too late for my purposes. Is there another notification that I could use that signals a

Re: Detecting when a text view becomes First Responder

2015-11-11 Thread Ken Thomases
On Nov 11, 2015, at 5:04 PM, Graham Cox wrote: > > I need to know when a text view becomes First Responder. I thought the > notification NSTextDidBeginEditingNotification would do it, but that’s only > sent when the user starts typing in the text view, which is too late

Re: More AppleScript-ObjC Bridge Weirdness

2015-11-11 Thread Shane Stanley
On 12 Nov 2015, at 4:29 AM, Dave wrote: > > I restarted my Mac and and added as string on the handler definition and it > started working (not sure which of these helped): The "as string" did it. Passing from Objective-C to AppleScript uses lazy conversion; it

Re: Set editable string into NSTextFieldCell

2015-11-11 Thread Raglan T. Tiger
> On Nov 11, 2015, at 2:38 PM, Graham Cox wrote: > > You don’t need to subclass NSOutlineView here. Double-clicks are already > detected and trigger the -doubleAction: be sent to the target of the control. > This is usually sufficient. If you leave everything standard,

Re: Set editable string into NSTextFieldCell

2015-11-11 Thread Graham Cox
> On 12 Nov 2015, at 9:52 AM, Raglan T. Tiger wrote: > > How do I put the current string from the item into the edit field ? > If you have implemented the dataSource protocol, the value of the text field should be already set. When you start editing, that value is