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
I tried adding the following:
try
set myMessageID to theMessageIDString as number
on error errorMessage number errorNumber
say errorNumber
say errorMessage
retur
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 Nor
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 "getOutlookMessagePropertiesDictionaryWith
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 (Co
> 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 edited?
You don’t need to sub
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 doesn't happen unless you ask fo
> 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, then editing
> text cell
> 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 automatically
copied into t
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
The delegate method textFieldDidBeginEditing: is called before the user starts
typing.
> On Nov 11, 2015, at 6: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
> se
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 for my
> purposes.
>
>
> On 12 Nov 2015, at 10:12 AM, Dave Fernandes
> wrote:
>
> textFieldDidBeginEditing
Sounds promising, but I can’t find that anywhere in the documentation. Where is
it defined? (n.b. I should make clear this is on Mac OS, if that’s iOS only I
can’t use it).
—Graham
__
> On 12 Nov 2015, at 10:14 AM, Ken Thomases wrote:
>
> You can either use a subclass of NSTextView and override its
> -becomeFirstResponder method or you can use KVO to observe the firstResponder
> property of the window and, each time it changes, check if it's your text
> view.
Thanks - I
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 in the documentation. Where
> is it defined? (n.b. I
I am designing an interface in Swift, Xcode 7.2 which uses Stack views to
surround an Image view; ( It’s a compass rose and the surrounding buttons are
the Cardinal, InterCardinal and secondary-intercardinal directions)
It looks something like this.
[(Button1) (Button2) ……… (Button5) ] <--
On Nov 11, 2015, at 6:43 PM, Michael de Haan wrote:
>
> Because there are 5 buttons in the top and bottom rows, and 3 in the vertical
> left and right rows, the spacing in the vertical stack views are not as
> “tight” as I want it to be.
>
> What I want is this. Lets call the space between t
- 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 Haan wrote:
>
> Because there are 5 buttons in the top and bottom
Please accept my apologies for the addresses on the previous post. Comcast
suddenly asked for a reset of passwords ( apparently someone tried to sell
thousands of their customer passwords 3 days ago etc) , and I was using their
webmail site.
>
> On Nov 11, 2015, at 6:43 PM, Michael de Haan
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 ex
On Nov 11, 2015, at 7:51 PM, Graham Cox wrote:
>
> 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
> applicat
> On Nov 11, 2015, at 3:58 PM, Graham Cox wrote:
>
> If it’s not working, you might have done something elsewhere that is
> preventing it working as it should.
without going into reasons why I was returning nil in objectValueForTableColumn
returning a value from my dataSource makes it work
Hi Everyone.
I'm trying to do something which in theory is rather simple: Use a
NSTokenFieldCell in a NSTableView and bind the table column value to the
token field.
I've had two problems:
1/ The binding doesn't seem to propagate the value back to the model.
2/ Occasional crashes when editing th
23 matches
Mail list logo