Re: ITMS-90276 Missing Bundle Identifier

2019-12-12 Thread Shane Stanley via Cocoa-dev
that is missing the bundle identifier in > its Info.plist file." > > Of course I could just add this to the Info.plist - but it feels wrong to > modify it. Just modify it. Automator often generates illegal ones anyway. -- Shane Stanley , ___

Re: Mojave vs. AppleScript

2018-10-30 Thread Shane Stanley
calling something that uses Adobe Unit Types.osax, that message is probably a red herring. Try removing Adobe Unit Types.osax -- AFAIK it hasn't done anything for years anyway. -- Shane Stanley , ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.co

Re: How to clear macOS app bundle cache

2018-09-04 Thread Shane Stanley
On 4 Sep 2018, at 11:28 pm, Alastair Houghton wrote: > > On 4 Sep 2018, at 00:19, Shane Stanley wrote: >> >> On 3 Sep 2018, at 11:31 pm, Andreas Falkenhahn >> wrote: >>> >>> I'm looking for a solution to flush the app bundle cache >> >&g

Re: How to clear macOS app bundle cache

2018-09-03 Thread Shane Stanley
On 3 Sep 2018, at 11:31 pm, Andreas Falkenhahn wrote: > > I'm looking for a solution to flush the app bundle cache If you find one, I'd love to know what it is. I had no luck at all. -- Shane Stanley , ___ Cocoa-dev mailing list (Coc

Re: Disabling menu items

2017-10-06 Thread Shane Stanley
for menu items you don’t > own (instead of calling super)? Quite possibly. Thanks for the nudge. -- Shane Stanley <sstan...@myriad-com.com.au> , ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin req

Disabling menu items

2017-10-06 Thread Shane Stanley
I fear I'm missing something simple. When I enter the versions browser, I want to disable the items on the Open Recent submenu. But I'm not seeing anywhere obvious to do it; that menu looks like it's all handled opaquely. Any clues? -- Shane Stanley <sstan...@myriad-com.com

Re: Annual codesign pain point

2017-06-18 Thread Shane Stanley
On 19 Jun 2017, at 3:12 pm, Graham Cox <graham@bigpond.com> wrote: > > Not sure why this wasn’t picked up in my previous builds though, since I was > compiling on 10.11. The change was made in 10.12. -- Shane Stanley <sstan...

Re: Annual codesign pain point

2017-06-18 Thread Shane Stanley
On 19 Jun 2017, at 1:06 pm, Graham Cox <graham@bigpond.com> wrote: > > resource fork, Finder information, or similar detritus not allowed See: <https://developer.apple.com/library/content/qa/qa1940/_index.html> -- Shane Stanley <sstan

Re: Creating "Application Scripts" subfolder in sandboxed environment

2017-06-09 Thread Shane Stanley
to users and offers them to > "install" predefined scripts (bundled in the application package) into that > folder. Your app can't do that -- scripts can only be installed in that folder by the user. -- Shane Stanley <sstan...@myriad-com.com.au> , __

Re: Need replacement of Component Manager::OpenDefaultComponent

2017-02-27 Thread Shane Stanley
> My requirement is to get the different instance on every call. ComponentInstance compInstance = [[OSALanguageInstance languageInstanceWithLanguage:[OSALanguage languageForName:@"AppleScript"]] componentInstance] -- Shane Stanley <sstan...@myriad-com.com.au> , _

Re: Need replacement of Component Manager::OpenDefaultComponent

2017-02-26 Thread Shane Stanley
eprecated. -- Shane Stanley <sstan...@myriad-com.com.au> , ___ 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.

Re: Some help with NSComparisonPredicate please

2017-02-16 Thread Shane Stanley
On 17 Feb 2017, at 10:54 am, sqwarqDev <sqwarq...@icloud.com> wrote: > > Still looking for help with this, if anyone’s got any idea? Use LIKE instead of CONTAINS? -- Shane Stanley <sstan...@myriad-com.com.au> , ___ Cocoa-dev m

Re: NSTextView tab stop count

2016-10-14 Thread Shane Stanley
f.textView insertText:mas]; It works as expected. -- Shane Stanley <sstan...@myriad-com.com.au> , ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: Triggering a segue from code

2016-09-22 Thread Shane Stanley
Web contents, but the URL, title, etc all intact. And the only way to close them is again via script -- their close buttons do nothing. It's probably just a bug, although DTS don't seem to think so, but these windows seem surprisingly resistant to death. -- Shane Stanley <sstan...@my

Re: How to update UI from a background thread

2016-09-22 Thread Shane Stanley
he AppleScript handling? What happens if you just comment out the execution line? (My guess is it will make no difference.) -- Shane Stanley <sstan...@myriad-com.com.au> , ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: How to update UI from a background thread

2016-09-22 Thread Shane Stanley
On 23 Sep. 2016, at 1:42 am, Jens Alfke <j...@mooseyard.com> wrote: > > AFAIK, AppleScripts can only be run on the main thread. But it’s been many OS > releases since I worked with them. FYI, that hasn't been the case for quite some time. -- Shane Stanley <sstan...

Re: Package installation on MacOS Sierra

2016-09-18 Thread Shane Stanley
has a generic file icon. Has this > kind of installer image been obsoleted by 10.12? If so, what can we do to > replace it in a way that works across various OS versions? FWIW I just tried one of those .dmgs here on 10.12 and it behaved as expected. -- Shane Stanley <

Re: Strange toolbar item error

2016-09-17 Thread Shane Stanley
ge-only in IB still shows any title if there is one. > > I think we have a bug report on this already. I've already filed #28348535, which includes a simple example. -- Shane Stanley <sstan...@myriad-com.com.au> , ___ Cocoa-dev mail

Re: Strange toolbar item error

2016-09-16 Thread Shane Stanley
On 15 Sep 2016, at 2:54 PM, Kyle Sluder <k...@ksluder.com> wrote: > > On Wed, Sep 14, 2016, at 07:50 PM, Shane Stanley wrote: >> Under 10.12 GM, I'm seeing entries like this in Console: >> >> NSToolbarItem () had to adjust the size of >> from {38, 25} to th

Re: Strange toolbar item error

2016-09-14 Thread Shane Stanley
On 15 Sep 2016, at 3:24 PM, Shane Stanley <sstan...@myriad-com.com.au> wrote: > > On 15 Sep 2016, at 2:54 PM, Kyle Sluder <k...@ksluder.com> wrote: >> >> What’s your app’s deployment target? What’s the deployment target of >> your nib (listed in the

Re: Strange toolbar item error

2016-09-14 Thread Shane Stanley
set to "Deployment Target(10.9)". -- Shane Stanley <sstan...@myriad-com.com.au> , ___ 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 c

Strange toolbar item error

2016-09-14 Thread Shane Stanley
. I've tried fiddling with the toolbar item sizes, to no avail. I added the suggested breakpoint, but I don't see it break. If the message weren't so adamant, I'd be inclined to question it. Anyone else seen it, or have suggestions? -- Shane Stanley <sstan...@myriad-com.com

Re: XIP archive won't extract for my users

2016-09-10 Thread Shane Stanley
because "the archive doesn't > come from Apple". From the latest update to 'macOS Code Signing In Depth': > Important: Starting with macOS Sierra, only XIP archives signed by Apple will > be expanded. Developers who have been using XIP archives will need to move to > using sig

Re: Set the size of a sheet when it's first loaded

2016-08-25 Thread Shane Stanley
On 25 Aug 2016, at 10:22 PM, Sandor Szatmari <admin.szatmari@gmail.com> wrote: > > What are you calling to set the window's frame? I am under the impression > that calling setFrame: is not respected when using autolayout. Thanks -- that's the simple thing I was forgett

Set the size of a sheet when it's first loaded

2016-08-25 Thread Shane Stanley
, but not the size. I've also tried setting the frame in the sheet controller's windowDidLoad, but that appears to be too late. I'm sure I'm missing something simple... -- Shane Stanley <sstan...@myriad-com.com.au> ___ Cocoa-dev mailing list (Coc

Re: Issue with read/write to NSFileHandle

2016-06-30 Thread Shane Stanley
ther for write? I think it's meant for simple cases where the same object is read and writing, more or less. Try separate read/write handles. -- Shane Stanley <sstan...@myriad-com.com.au> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.

Re: Issue with read/write to NSFileHandle

2016-06-29 Thread Shane Stanley
ile, but read from wherever > you’d read from last time. You're not trying to use the same handle for both, are you? -- Shane Stanley <sstan...@myriad-com.com.au> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: XCode snapshot function?

2016-05-09 Thread Shane Stanley
On 10 May 2016, at 11:21 AM, Graham Cox <graham@bigpond.com> wrote: > > Where is the snapshot function in XCode these days (XCode 7.3)? Disappeared a few versions back, I believe. -- Shane Stanley <sstan...@myriad-com.com.au>

Re: Alternatives to NSMatrix that uses bindings similar to NSMatrix's bindings

2016-04-08 Thread Shane Stanley
that doesn't help with the problem of bindings for selectedIndex, does it? -- Shane Stanley <sstan...@myriad-com.com.au> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: Datasource methods in view-based tables

2016-02-12 Thread Shane Stanley
s, Quincey. I keep forgetting about checking the headers. -- Shane Stanley <sstan...@myriad-com.com.au> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Datasource methods in view-based tables

2016-02-12 Thread Shane Stanley
see something that's called so often is wasting cycles if it's not needed. -- Shane Stanley <sstan...@myriad-com.com.au> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to th

Re: More Xcode 7 inconsistency?

2016-01-06 Thread Shane Stanley
On 14 Oct 2015, at 2:27 PM, Shane Stanley <sstan...@myriad-com.com.au> wrote: > On 14 Oct 2015, at 1:33 PM, Graham Cox <graham@bigpond.com> wrote: >> >> I’ve been passing nil forever, only now does Xcode 7 complain, presumably >> because only now is the _No

Re: NSWindow

2015-11-30 Thread Shane Stanley
starts. In 10.11, the window does > not appear until after the task is complete. I'm glad I wasn't the only one caught by surprise on that. I don't doubt that Quincey's conclusions are correct, but there are situations where there are not particularly easy ways to get around it. -- Shane Sta

Re: Bunch of CoreData based NSDocument questions.

2015-11-29 Thread Shane Stanley
far as I can tell, one is forced to dig in to the Time Machine BS in order to > resurrect the file. System Preferences -> General, check "Ask to keep changes when closing documents". -- Shane Stanley <sstan...@myriad-com.com.au> _

Re: Bunch of CoreData based NSDocument questions.

2015-11-29 Thread Shane Stanley
review, crop it, and quit. Open it again and you'll see the document is marked dirty/Edited, and you can get back to the original either by clicking the close button and Revert Changes, or choosing File -> Revert Changes... -- Shane Stanley

Re: Bunch of CoreData based NSDocument questions.

2015-11-29 Thread Shane Stanley
ting an app" checkbox, too. -- Shane Stanley <sstan...@myriad-com.com.au> ___ 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: Bunch of CoreData based NSDocument questions.

2015-11-29 Thread Shane Stanley
hat's intuitive to her might be totally different. It may well be that it's more baffling to you *because* you're a long-time power user. -- Shane Stanley <sstan...@myriad-com.com.au> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Ple

Re: dateFromString won't accept this string:

2015-11-23 Thread Shane Stanley
On 24 Nov 2015, at 9:26 AM, Alex Zavatone <z...@mac.com> wrote: > > Here’s a pretty good (really really good) reference: Except it's out-of-date. <http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns> -- Shane Stanley <sstan

Re: Installing older OS X

2015-11-17 Thread Shane Stanley
On 18 Nov 2015, at 11:50 AM, Quincey Morris <quinceymor...@rivergatesoftware.com> wrote: > > I want to install 10.8.5 somewhere, to debug an app compatibility issue on > that OS, but I can’t seem to figure out how. Does this help? <https://support.apple.com/en-us/HT201372>

Re: More AppleScript-ObjC Bridge Weirdness

2015-11-11 Thread Shane Stanley
Editor has the dictionary loaded so it can do the conversion, but a running app doesn't, so it converts the underlying code as best it can. You need to test the options and build your own string: if class of myMessage is outgoing message then se

Re: Another AppleScript-ObjC Bridge Question

2015-11-10 Thread Shane Stanley
you don't, you won't catch things like terminology clashes.) See the section on handlers in the AppleScript Language Guide. -- Shane Stanley <sstan...@myriad-com.com.au> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do no

Re: Another AppleScript-ObjC Bridge Question

2015-11-09 Thread Shane Stanley
nderscore anywhere. The doThis:withThat: interleaved syntax was introduced to AppleScript in 10.9; before that, you would use doThis_andThat_() (which is what happens under the hood, and can still be used). But never an underscore where there is no parameter. -- Shane Stanley <sstan

Re: AppleScript-ObjC Bridge Question

2015-11-01 Thread Shane Stanley
me end init Only use continue if the method is also defined in the AS class. But unless you have to init the subclass that way, it would be a lot simpler to do a simple alloc()'s init(), and then set the (inherited) properties of the result. -- Shane Stanley <sstan...

Re: AppleScript-ObjC Bridge Question

2015-10-31 Thread Shane Stanley
c initialization here. -- If an error occurs here, return missing value. return me end init But the differing inits smells a bit to me -- especially as it's unnecessary. > > Thanks a lot, if you could point me to some documenta

Re: AppleScript-ObjC Bridge Question

2015-10-31 Thread Shane Stanley
AppleScript to invoke the handler with the same > name in the parent of the current handler. No me. -- Shane Stanley <sstan...@myriad-com.com.au> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: AppleScript-ObjC Bridge Question

2015-10-30 Thread Shane Stanley
continue init() -- Add your subclass-specific initialization here. -- If an error occurs here, return missing value. return me end init -- Shane Stanley <sstan...@myriad-com.com.au> _

Re: AppleScript-ObjC Bridge Question

2015-10-30 Thread Shane Stanley
On 30 Oct 2015, at 8:46 PM, Dave <d...@looktowindward.com> wrote: > > I can’t seem to find any other documentation on this and was wondering if > init would get called if I defined it, when I execute the following: Why wouldn't it? -- Shane Stanley <sstan...

Re: AppleScript-ObjC Bridge Question

2015-10-29 Thread Shane Stanley
use different init methods, e.g. > > -(id) initWithParameterDictionary:(NSDictionary*) theParameterDictionary; Yes, as long as the parameters are objects and not primitive types. -- Shane Stanley <sstan...@myriad-com.com.au> ___ Coc

Re: More Xcode 7 inconsistency?

2015-10-14 Thread Shane Stanley
the docs still say: "The dictionary contains values from Document Types and must at least contain NSDocumentTypeDocumentAttribute." That suggests to me that an empty dictionary is not allowed. -- Shane Stanley <sstan...@myriad-com.com.au> _

Re: More Xcode 7 inconsistency?

2015-10-13 Thread Shane Stanley
, I've had an open bug on this since July (#21667200). You might also notice the docs say "dict can be nil", and there isn't a "dict" to be seen (presumably it means docAttributes). -- Shane Stanley <sstan...@myriad-com.com.au> __

Re: Display USB Video Camera output : AVFoundation?

2015-09-09 Thread Shane Stanley
On 10 Sep 2015, at 2:22 pm, Jerry Krinock <je...@ieee.org> wrote: > > In a Mac app, I need to display real-time video (as in “movies”) from a USB > camera on the screen. Have a look at the sample code AVRecorder. -- Shane Stanley <sstan...

Visual glitch

2015-09-04 Thread Shane Stanley
it contains have >= constraints with a priority of 1000, but neither seem violated at any stage. Any suggestions? -- Shane Stanley <sstan...@myriad-com.com.au> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Crash help?

2015-08-20 Thread Shane Stanley
it at will by: closing a document, waiting a couple fo seconds, then opening it (or any other document). It doesn't happen under 10.9 or 10.10, nor in the first few 10.11s. Any suggestions? -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com/applescript/apps

Re: Crash help?

2015-08-20 Thread Shane Stanley
On 20 Aug 2015, at 7:16 pm, Mike Abdullah mabdul...@karelia.com wrote: Try running your app with zombies enabled I spent a couple of hours playing with that the other day. After your email I tried again: success in minutes, thank you! I was failing to remove an observer... -- Shane Stanley

Re: Regarding these Olivia messages. Can we do something about the list security?

2015-07-30 Thread Shane Stanley
On 30 Jul 2015, at 9:36 pm, Alex Zavatone z...@mac.com wrote: Including me, I know of three people who have gotten these. FWIW, it's also happening to on at least one other Apple mailing list. Olivia seems to get around. -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com

Re: Anyone recommend Dash?

2015-07-09 Thread Shane Stanley
On 9 Jul 2015, at 5:02 pm, Roland King r...@rols.org wrote: I didn’t think you could do paid upgrades through the appstore. You can also buy Dash outside the App Store. Apart from the Profiles UI, I'm a big fan. -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com

Re: Predicate warning from text view

2015-07-08 Thread Shane Stanley
it is not a subclass of a NSTextView, but a straight instance of one. FYI, my bug report has been closed as a duplicate since I posted, so I guess that's also confirmation of a sort. -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com/applescript/apps

Re: Predicate warning from text view

2015-07-07 Thread Shane Stanley
when I turn it back on. Can anyone else who is seeing the problem confirm that turning Markup solves the problem? nd aAny thoughts on how I might get Markup to stop poking in my window, especially as it can't actually do anything there? -- Shane Stanley sstan...@myriad-com.com.au

Re: [Swift] best way to support 'keyword' args, symbolic values, show values as literals?

2015-06-16 Thread Shane Stanley
be self-explanatory. -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com/applescript/apps/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: iOS version check

2015-06-12 Thread Shane Stanley
, 8_0); If your app still needs to run on iOS 7 then using the UIDevice method may be a better way to go. There's always -respondsToSelector:, which should then account for iOS 7. -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com/applescript/apps

Re: Getting at NSTextFinder from text view

2015-04-14 Thread Shane Stanley
. -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com/applescript/apps/ ___ 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: Getting at NSTextFinder from text view

2015-04-14 Thread Shane Stanley
. It seems a lot of overhead for each time I modify the text, so maybe there's some way I can test if a search is active first. -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com/applescript/apps/ ___ Cocoa-dev mailing list (Cocoa-dev

Re: Getting at NSTextFinder from text view

2015-04-14 Thread Shane Stanley
, the odd behavior I was alluding to actually seems to be a normal inconsistency in the find bar's behavior. -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com/applescript/apps/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Getting at NSTextFinder from text view

2015-04-14 Thread Shane Stanley
textStorage] setAttributedString:string]; -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com/applescript/apps/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: Getting at NSTextFinder from text view

2015-04-13 Thread Shane Stanley
. At this stage the main thing is to stop the crashes. Thanks! -- Shane Stanley sstan...@myriad-com.com.au mailto:sstan...@myriad-com.com.au www.macosxautomation.com/applescript/apps/ http://www.macosxautomation.com/applescript/apps/ ___ Cocoa-dev mailing list

Re: Getting at NSTextFinder from text view

2015-04-13 Thread Shane Stanley
I read that last line ;-) I’m happy to share my test project, if you are interested. I am, thanks. -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com/applescript/apps/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Getting at NSTextFinder from text view

2015-04-12 Thread Shane Stanley
how I can actually get hold of the frameworks-provided text finder to message it. I fear I'm missing something simple. Any clues? -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com/applescript/apps/ ___ Cocoa-dev mailing list

Re: Number formatter errors

2015-04-01 Thread Shane Stanley
. -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com/applescript/apps/ ___ 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: View-based tableview and outlets to NSFormatters

2015-04-01 Thread Shane Stanley
that lives in the same nib. I suspect this is what you are looking for, if not what you want to hear: http://prod.lists.apple.com/archives/cocoa-dev/2015/Mar/msg00107.html -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com/applescript/apps

Number formatter errors

2015-03-31 Thread Shane Stanley
something simple, but it's escaping me. Any hints? -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com/applescript/apps/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: Number formatter errors

2015-03-31 Thread Shane Stanley
On 1 Apr 2015, at 1:33 pm, Shane Stanley sstan...@myriad-com.com.au wrote: I'm sure I'm missing something simple, but it's escaping me. Yep. Bindings. -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com/applescript/apps

Re: Display an Alert Sheet at a Specified Screen Position

2015-03-26 Thread Shane Stanley
for that splitview subview. (My use of it elsewhere with an open panel is more problematic, however. I just can't think of anything better.) And full-screen mode just puts them back at the top of the window regardless. -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com/applescript/apps

Re: Display an Alert Sheet at a Specified Screen Position

2015-03-26 Thread Shane Stanley
into top and bottom sections, and the user is doing stuff in the bottom part -- it makes more sense, it seems to me, to have the alert appear from the top of the bottom view than at the top of the window.) -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com/applescript/apps

Re: Bindings in view-based tables

2015-03-05 Thread Shane Stanley
of tableTextSize. The buttons are in a radio group, with the Selected Tag bound to the same thing. (The two buttons have tags of 11 and 13 respectively). -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com/applescript/apps/ ___ Cocoa-dev

Re: Bindings in view-based tables

2015-03-05 Thread Shane Stanley
On 6 Mar 2015, at 12:06 pm, Ken Thomases k...@codeweavers.com wrote: It seems you can't delete the cell view that's under the table column in the first NIB. It also seems that the row height is based on its height. -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com

Re: Bindings in view-based tables

2015-03-05 Thread Shane Stanley
the delegate method anyway, but I was surprised. -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com/applescript/apps/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Bindings in view-based tables

2015-03-05 Thread Shane Stanley
no luck with view-based tables. I presumed the text field in the table cell view was the thing to bind, but I've tried just about every combination I can think of. Should it still work? -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com/applescript/apps

Re: Bindings in view-based tables

2015-03-05 Thread Shane Stanley
derived property that tracks the user defaults value, and to bind the text field font size to that. Thanks, Quincey. That sounds much easier, but alas I got your email after I'd started implementing Ken's suggestion. -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com/applescript

Re: Bindings in view-based tables

2015-03-05 Thread Shane Stanley
for a text field within a table cell view that it doesn't seem to work. Table views and columns also have Font Size bindings, and I've tried various permutations, with no luck. -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com/applescript/apps

Re: Latest Documentation for adding Applescript Support to an Objective-C Project

2015-02-24 Thread Shane Stanley
On 24 Feb 2015, at 8:40 pm, Dave d...@looktowindward.com wrote: I’m wondering why I got a warning when I downloaded the sample Apps then? Sounds odd. I just downloaded a couple again, with no problems other than build settings that needed to be updated. -- Shane Stanley sstan...@myriad

Re: Latest Documentation for adding Applescript Support to an Objective-C Project

2015-02-23 Thread Shane Stanley
On 24 Feb 2015, at 12:21 am, Dave d...@looktowindward.com wrote: From searching online it looks like things have changed quite recently? Not in terms of how it's implemented in apps. -- Shane Stanley sstan...@myriad-com.com.au ___ Cocoa-dev

Re: NSPredicateEditor's date picker doesn't use user's date format

2015-02-19 Thread Shane Stanley
On 20 Feb 2015, at 5:17 pm, Steve Mills sjmi...@mac.com wrote: Shouldn't setLocalizedDateFormatFromTemplate be getting the format from my system prefs? I'd expect it would get it based on the locale you've set, not the date format you've set. -- Shane Stanley sstan...@myriad-com.com.au

Re: Inexplicable Crash in -[NSAppleScript executeAndReturnError:]

2015-01-23 Thread Shane Stanley
error’ AppleScript command defined, and it works. What does it do -- does it call OSACOerceFromDesc() by any chance? Do you know what code was running when the errors were generated? -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com/applescript/apps

Re: Inexplicable Crash in -[NSAppleScript executeAndReturnError:]

2015-01-23 Thread Shane Stanley
On 24 Jan 2015, at 11:40 am, Shane Stanley sstan...@myriad-com.com.au wrote: where [[NSBundle mainAppBundle] bundlePath] returns “com.mycompany.MyApp”. In that case, you should be using @tell application id \%@\\n. Ignore that. Your code says bundlePath, but I focused on your description

Re: Yosemite-like Toolbar: Segmented Controls, Buttons, Template Images?

2014-12-17 Thread Shane Stanley
, the View menu in a Finder window. I call setSegmentStyle:NSSegmentStyleSeparated when it loads under 10.10, which gives the separated appearance. But in terms of how template images work, it's the same. -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com/applescript/apps

Re: Yosemite-like Toolbar: Segmented Controls, Buttons, Template Images?

2014-12-17 Thread Shane Stanley
. It basically reverses the image when selected, except when the window is in the background (in which case the background is a lighter grey). -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com/applescript/apps/ ___ Cocoa-dev mailing list

Re: how to reset another app's prefs

2014-11-20 Thread Shane Stanley
with this Terminal solution on the AppleScript mailing list: do shell script asprefs=$(defaults read com.apple.applescript) ; defaults write com.apple.applescript \$asprefs\ Looks odd, but it might be worth a try. -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com/applescript

Predicate warning from text view

2014-10-24 Thread Shane Stanley
predicates is my completion code, but nothing to do with UTIs. This is only happening under Yosemite. Any suggestions on where I might start looking? -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com/applescript/apps/ ___ Cocoa-dev

Re: Predicate warning from text view

2014-10-24 Thread Shane Stanley
On 24 Oct 2014, at 6:37 pm, Shane Stanley sstan...@myriad-com.com.au wrote: I have Graphics turned off in IB because I don't support attachments. I do override -selectionRangeForProposedRange:granularity:, but not in any way that I can see would produce this sort of thing. The only place I

Re: Predicate warning from text view

2014-10-24 Thread Shane Stanley
Preferences shows no third-party extensions. There's Markup under Actions, Add to Reading List and Add to iPhoto plus the required ones under Share Menu, and Calendar, Reminders, Stocks and Weather under Today. -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com/applescript/apps

Re: Predicate warning from text view

2014-10-24 Thread Shane Stanley
the logging was triggered. In my case I redirect stdErr output to my log window, so it's a bit of a pain. Looks like I can just filter it out, though. -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com/applescript/apps/ ___ Cocoa

Re: Problem getting import UTI recognised

2014-10-16 Thread Shane Stanley
that conforming to a physical hierarchy is mandatory, and you're not doing that. So maybe you also need to conform to something like public.item or public.data. -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com/applescript/apps/ ___ Cocoa-dev

Re: NSOutlineView

2014-09-10 Thread Shane Stanley
On 10 Sep 2014, at 12:49 pm, Shane Stanley sstan...@myriad-com.com.au wrote: FWIW, and this is unrelated to your problem, I'm not sure you should delete the empty custom views, but rather drag the outline view and text view/scroll view into them. At least, I did what you outlined

Re: NSOutlineView

2014-09-09 Thread Shane Stanley
fixed some corruption or other, but deleting the custom views reintroduced the problem. -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com/applescript/apps/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Talking to other apps - again

2014-08-06 Thread Shane Stanley
and maintaining the app header file, and can do some stuff more efficiently than SBApplication et al can. -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com/applescript/apps/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: How to get the time zone of a parsed date/time string?

2014-08-02 Thread Shane Stanley
On 31 Jul 2014, at 8:27 am, Jens Alfke j...@mooseyard.com wrote: I want to avoid if possible a solution that involves manually scraping the string. NSDataDetector? NSTextCheckingTypeDate has a timeZone property. -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com

Auto layout and split views

2014-07-21 Thread Shane Stanley
dragging a divider so that only the owning split view responds. And I'm not sure how to go about that. -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com/applescript/apps/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: having both cell based and view based outline views in one project

2014-07-12 Thread Shane Stanley
On 13 Jul 2014, at 1:32 am, Keary Suska cocoa-...@esoteritech.com wrote: As far as I can tell, there is no public property that tells an NSTableView whether it is cell-based or view-based Yet there's a popup in IB (the very first one), so it's presumably doing something. -- Shane Stanley

Re: having both cell based and view based outline views in one project

2014-07-12 Thread Shane Stanley
On 13 Jul 2014, at 7:58 am, Ken Thomases k...@codeweavers.com wrote: It's changing the prototype objects. Makes sense, thanks. On my first try I spent ages trying to delete the old text cell, until I checked the example again... -- Shane Stanley sstan...@myriad-com.com.au

Re: View-based outline view problem

2014-07-11 Thread Shane Stanley
that overrides becoming first responder. That's all I can think of. Just seems a lot of work for something that doesn't strike me as an uncommon need. -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com/applescript/apps/ ___ Cocoa-dev

  1   2   3   >