Re: ITMS-90276 Missing Bundle Identifier

2019-12-12 Thread Shane Stanley via Cocoa-dev
at 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
ually 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@list

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 >> &

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

Re: Disabling menu items

2017-10-06 Thread Shane Stanley
don’t > own (instead of calling super)? Quite possibly. Thanks for the nudge. -- Shane Stanley , ___ 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

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? --

Re: Annual codesign pain point

2017-06-18 Thread Shane Stanley
On 19 Jun 2017, at 3:12 pm, Graham Cox 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 , ___ Cocoa-dev mailing list (

Re: Annual codesign pain point

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

Re: Creating "Application Scripts" subfolder in sandboxed environment

2017-06-09 Thread Shane Stanley
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 , ___

Re: Need replacement of Component Manager::OpenDefaultComponent

2017-02-27 Thread Shane Stanley
t is to get the different instance on every call. ComponentInstance compInstance = [[OSALanguageInstance languageInstanceWithLanguage:[OSALanguage languageForName:@"AppleScript"]] componentInstance] -- Shane Stanley , ___ Cocoa-dev mailing list (Coc

Re: Need replacement of Component Manager::OpenDefaultComponent

2017-02-26 Thread Shane Stanley
as deprecated. -- Shane Stanley , ___ 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.apple.com Help/Unsubscribe/Update you

Re: Some help with NSComparisonPredicate please

2017-02-16 Thread Shane Stanley
On 17 Feb 2017, at 10:54 am, sqwarqDev wrote: > > Still looking for help with this, if anyone’s got any idea? Use LIKE instead of CONTAINS? -- Shane Stanley , ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: NSTextView tab stop count

2016-10-14 Thread Shane Stanley
]; It works as expected. -- Shane Stanley , ___ 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.apple.com Help/Unsubscribe/

Re: Triggering a segue from code

2016-09-22 Thread Shane Stanley
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 , _

Re: How to update UI from a background thread

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

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 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. --

Re: Package installation on MacOS Sierra

2016-09-18 Thread Shane Stanley
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
button >> to image-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 , ___ Cocoa-dev mailing lis

Re: Strange toolbar item error

2016-09-16 Thread Shane Stanley
On 15 Sep 2016, at 2:54 PM, Kyle Sluder 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 the expected size

Re: Strange toolbar item error

2016-09-14 Thread Shane Stanley
On 15 Sep 2016, at 3:24 PM, Shane Stanley wrote: > > On 15 Sep 2016, at 2:54 PM, Kyle Sluder wrote: >> >> What’s your app’s deployment target? What’s the deployment target of >> your nib (listed in the file inspector while the nib is open for >> editing)? >

Re: Strange toolbar item error

2016-09-14 Thread Shane Stanley
uot;Deployment Target(10.9)". -- Shane Stanley , ___ 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.apple.com Help/Unsubscribe

Strange toolbar item error

2016-09-14 Thread Shane Stanley
than 25px deep. 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 ha

Re: XIP archive won't extract for my users

2016-09-10 Thread Shane Stanley
#x27;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 > usi

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 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 forgetting.

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

2016-08-25 Thread Shane Stanley
able is being updated, 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 ___ Cocoa-dev maili

Re: Issue with read/write to NSFileHandle

2016-06-29 Thread Shane Stanley
#x27;s meant for simple cases where the same object is read and writing, more or less. Try separate read/write handles. -- Shane Stanley ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator commen

Re: Issue with read/write to NSFileHandle

2016-06-29 Thread Shane Stanley
> you’d read from last time. You're not trying to use the same handle for both, are you? -- Shane Stanley ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: XCode snapshot function?

2016-05-09 Thread Shane Stanley
On 10 May 2016, at 11:21 AM, Graham Cox wrote: > > Where is the snapshot function in XCode these days (XCode 7.3)? Disappeared a few versions back, I believe. -- Shane Stanley ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

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

2016-04-07 Thread Shane Stanley
oblem of bindings for selectedIndex, does it? -- Shane Stanley ___ 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.apple.com

Re: Datasource methods in view-based tables

2016-02-12 Thread Shane Stanley
checking the headers. -- Shane Stanley ___ 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.apple.com Help/Unsubscribe/Update your

Datasource methods in view-based tables

2016-02-12 Thread Shane Stanley
the time? I guess I just see something that's called so often is wasting cycles if it's not needed. -- Shane Stanley ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: More Xcode 7 inconsistency?

2016-01-06 Thread Shane Stanley
On 14 Oct 2015, at 2:27 PM, Shane Stanley wrote: > On 14 Oct 2015, at 1:33 PM, Graham Cox wrote: >> >> I’ve been passing nil forever, only now does Xcode 7 complain, presumably >> because only now is the _Nonnull attribute added. But either the >> documentation or

Re: NSWindow

2015-11-30 Thread Shane Stanley
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 t

Re: Bunch of CoreData based NSDocument questions.

2015-11-29 Thread Shane Stanley
ive 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 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or m

Re: Bunch of CoreData based NSDocument questions.

2015-11-29 Thread Shane Stanley
expects? I don't know -- I don't think many of us here really count as average users. > The app has no business overwriting my original file without either a) my > explicitly hitting save, or b) prompting me to allow a save. You might try clicking the "Close windows when

Re: Bunch of CoreData based NSDocument questions.

2015-11-29 Thread Shane Stanley
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 ___ C

Re: Bunch of CoreData based NSDocument questions.

2015-11-29 Thread Shane Stanley
l, 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 ___ Cocoa-dev mailing list (Cocoa-dev@lists.appl

Re: dateFromString won't accept this string:

2015-11-23 Thread Shane Stanley
On 24 Nov 2015, at 9:26 AM, Alex Zavatone 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 _

Re: Installing older OS X

2015-11-17 Thread Shane Stanley
On 18 Nov 2015, at 11:50 AM, Quincey Morris 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
ionary 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 set kMessageClass of myDictionary to "outgoing

Re: Another AppleScript-ObjC Bridge Question

2015-11-10 Thread Shane Stanley
#x27;t catch things like terminology clashes.) See the section on handlers in the AppleScript Language Guide. -- Shane Stanley ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: Another AppleScript-ObjC Bridge Question

2015-11-09 Thread Shane Stanley
That: 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 ___

Re: AppleScript-ObjC Bridge Question

2015-11-01 Thread Shane Stanley
ntinue 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

Re: AppleScript-ObjC Bridge Question

2015-10-31 Thread Shane Stanley
he same > name in the parent of the current handler. No me. -- Shane Stanley ___ 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: AppleScript-ObjC Bridge Question

2015-10-31 Thread Shane Stanley
-- 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 doc

Re: AppleScript-ObjC Bridge Question

2015-10-30 Thread Shane Stanley
-- Add your subclass-specific initialization here. -- If an error occurs here, return missing value. return me end init -- Shane Stanley ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: AppleScript-ObjC Bridge Question

2015-10-30 Thread Shane Stanley
On 30 Oct 2015, at 8:46 PM, Dave 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

Re: AppleScript-ObjC Bridge Question

2015-10-29 Thread Shane Stanley
, e.g. > > -(id) initWithParameterDictionary:(NSDictionary*) theParameterDictionary; Yes, as long as the parameters are objects and not primitive types. -- Shane Stanley ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: More Xcode 7 inconsistency?

2015-10-14 Thread Shane Stanley
ctionary contains values from Document Types and must at least contain NSDocumentTypeDocumentAttribute." That suggests to me that an empty dictionary is not allowed. -- Shane Stanley ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Pl

Re: More Xcode 7 inconsistency?

2015-10-13 Thread Shane Stanley
n 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 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.

Re: Display USB Video Camera output : AVFoundation?

2015-09-09 Thread Shane Stanley
On 10 Sep 2015, at 2:22 pm, Jerry Krinock 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 ___ Cocoa-dev mai

Visual glitch

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

Re: Crash help?

2015-08-20 Thread Shane Stanley
On 20 Aug 2015, at 7:16 pm, Mike Abdullah 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 S

Crash help?

2015-08-19 Thread Shane Stanley
duce 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 ___ Cocoa-dev

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 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 ___

Re: Anyone recommend Dash?

2015-07-09 Thread Shane Stanley
On 9 Jul 2015, at 5:02 pm, Roland King 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 ___ Cocoa-

Re: Predicate warning from text view

2015-07-08 Thread Shane Stanley
y case 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 ___ Cocoa-dev mailing list

Re: Predicate warning from text view

2015-07-07 Thread Shane Stanley
upgraded to 10.10.4 -- Console can be flooded with dozens at a time. But I've also found that they *stop* if turn off the Markup extension, and start back up when I turn it back on. Can anyone else who is seeing the problem confirm that turning Markup

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

2015-06-16 Thread Shane Stanley
-explanatory. -- Shane Stanley ___ 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.apple.com Help/Unsubscribe/Update your

Re: iOS version check

2015-06-12 Thread Shane Stanley
> NS_AVAILABLE(10_10, 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 ___ Cocoa-d

Re: Getting at NSTextFinder from text view

2015-04-14 Thread Shane Stanley
[[self textStorage] setAttributedString:string]; -- Shane Stanley ___ 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.apple.c

Re: Getting at NSTextFinder from text view

2015-04-14 Thread Shane Stanley
g and: This is what I'm doing in my text view subclass: [self setIncrementalSearchingEnabled:NO]; [self.textFinder noteClientStringWillChange]; // modify textStorage here [self setIncrementalSearchingEnabled:YES]; Seems to be working in my (admittedly limited) testing.

Re: Getting at NSTextFinder from text view

2015-04-14 Thread Shane Stanley
odd behavior I was alluding to actually seems to be a "normal" inconsistency in the find bar's behavior. -- Shane Stanley ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to t

Re: Getting at NSTextFinder from text view

2015-04-14 Thread Shane Stanley
first subsequent search, but that's a relatively small price to pay. 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 ___ Cocoa-dev mailing list

Re: Getting at NSTextFinder from text view

2015-04-13 Thread Shane Stanley
the main thing is to stop the crashes. Thanks! -- Shane Stanley mailto:sstan...@myriad-com.com.au>> http://www.macosxautomation.com/applescript/apps/>> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin req

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 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. C

Getting at NSTextFinder from text view

2015-04-12 Thread Shane Stanley
t see 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 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin r

Re: View-based tableview and outlets to NSFormatters

2015-04-01 Thread Shane Stanley
top-level formatter 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 ___ Cocoa-dev mailing lis

Re: Number formatter errors

2015-04-01 Thread Shane Stanley
On 2 Apr 2015, at 3:41 am, Sean McBride wrote: > > Do you have 'validates immediately' on? No -- I didn't actually have a binding at that stage, which is why I wasn't seeing the result I expected. I'd missed the fact that bindings were the driver of the er

Re: Number formatter errors

2015-03-31 Thread Shane Stanley
On 1 Apr 2015, at 1:33 pm, Shane Stanley wrote: > > I'm sure I'm missing something simple, but it's escaping me. Yep. Bindings. -- Shane Stanley ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not p

Number formatter errors

2015-03-31 Thread Shane Stanley
'm missing something simple, but it's escaping me. Any hints? -- Shane Stanley ___ 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: Display an Alert Sheet at a Specified Screen Position

2015-03-26 Thread Shane Stanley
ew. (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 ___ Cocoa-dev mail

Re: Display an Alert Sheet at a Specified Screen Position

2015-03-26 Thread Shane Stanley
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 ___ Cocoa-dev mailing list (Cocoa-dev@lists.

Re: Bindings in view-based tables

2015-03-05 Thread Shane Stanley
ed its height and ran it again, the height of the rows changed accordingly. No big deal because I needed to implement the delegate method anyway, but I was surprised. -- Shane Stanley ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please d

Re: Bindings in view-based tables

2015-03-05 Thread Shane Stanley
On 6 Mar 2015, at 12:06 pm, Ken Thomases 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 ___ Coc

Re: Bindings in view-based tables

2015-03-05 Thread Shane Stanley
the cell’s > “objectValue” a KVO-compliant “fontSize" 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. --

Re: Bindings in view-based tables

2015-03-05 Thread Shane Stanley
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 ___ Cocoa-dev mailing list (Cocoa-dev@lists.

Re: Bindings in view-based tables

2015-03-05 Thread Shane Stanley
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 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moder

Bindings in view-based tables

2015-03-05 Thread Shane Stanley
7;m having 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 ___ Cocoa-dev mailing

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 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 S

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 wrote: > > From searching online it looks like things have changed quite recently? Not in terms of how it's implemented in apps. -- Shane Stanley ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 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&#x

Re: Inexplicable Crash in -[NSAppleScript executeAndReturnError:]

2015-01-23 Thread Shane Stanley
On 24 Jan 2015, at 11:40 am, Shane Stanley 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 focuse

Re: Inexplicable Crash in -[NSAppleScript executeAndReturnError:]

2015-01-23 Thread Shane Stanley
ot;. (Oh, and "activate" seems to have become asynchronous these days.) > MyApp indeed has a 'present last logged 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 wh

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

2014-12-17 Thread Shane Stanley
lue. 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 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requ

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

2014-12-17 Thread Shane Stanley
esult to, say, 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 ___ Cocoa

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

Re: Predicate warning from text view

2014-10-24 Thread Shane Stanley
any case, I never observed any actual ill effects in my app whenever 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 ___

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 ___ Cocoa-dev ma

Re: Predicate warning from text view

2014-10-24 Thread Shane Stanley
On 24 Oct 2014, at 6:37 pm, Shane Stanley 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 use >

Predicate warning from text view

2014-10-24 Thread Shane Stanley
duce this sort of thing. The only place I use 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 ___ Cocoa-dev mailing list (C

Re: Problem getting import UTI recognised

2014-10-16 Thread Shane Stanley
d be read as implying 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 ___ Cocoa-dev mailing list (Cocoa-dev@list

Re: NSOutlineView

2014-09-10 Thread Shane Stanley
On 10 Sep 2014, at 12:49 pm, Shane Stanley 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 on a p

Re: NSOutlineView

2014-09-09 Thread Shane Stanley
have accidentally fixed some corruption or other, but deleting the custom views reintroduced the problem. -- Shane Stanley ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Co

Re: Talking to other apps - again

2014-08-06 Thread Shane Stanley
avoids the whole hassle of building and maintaining the app header file, and can do some stuff more efficiently than SBApplication et al can. -- Shane Stanley ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

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 wrote: > I want to avoid if possible a solution that involves manually scraping the > string. NSDataDetector? NSTextCheckingTypeDate has a timeZone property. -- Shane Stanley ___ Cocoa-dev mailin

Auto layout and split views

2014-07-21 Thread Shane Stanley
e behavior when dragging a divider so that only the owning split view responds. And I'm not sure how to go about that. -- Shane Stanley ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

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 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 ___ C

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 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. -

Re: View-based outline view problem

2014-07-11 Thread Shane Stanley
the text field. Thanks for the tips. -- Shane Stanley ___ 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.apple.com Help/Uns

  1   2   3   >