Re: Need for Swift

2019-10-15 Thread Paul Scott via Cocoa-dev
> On Oct 15, 2019, at 9:40 AM, Richard Charles via Cocoa-dev > wrote: > > I have found your comments enlightening. So if I understand correctly you > have three choices for a native UI on the Mac. > > 1. Objective-C which would integrate nicely with your C++ business logic > using Objective-

Re: WatchKit Baby Apps

2018-03-01 Thread J. Scott Tury
he timer has finished. The simplest thing I can think of is to schedule a Local Notification. That should be able to get your user’s attention! Hopefully this helps you move in the right direction. Scott ___ Cocoa-dev mailing list (Cocoa-dev@lis

Re: Cocoa-dev Digest, Vol 14, Issue 154

2017-05-02 Thread J. Scott Tury
happening. Once those interactions are cleaned up, performance should be good. Good luck! Scott Tury > On May 2, 2017, at 3:00 PM, cocoa-dev-requ...@lists.apple.com wrote: > > Has anybody written something better than NSCollectionView to display a > scrolling matrix of cells t

Re: Message from iOS to watchOS

2016-12-06 Thread J. Scott Tury
always been application specific. They were not built to allow applications to send information to another application. Hopefully that was the information you were looking for. :) Scott Tury > On Dec 6, 2016, at 4:01 AM, Gerriet M. Denkmann wrote: > > >> On 5 Dec 2016, at 21:27

Re: Message from iOS to watchOS

2016-12-05 Thread J. Scott Tury
local notification, you should see it go to your watch first. (It will also be delivered to your iPhone if you go to the lock screen.) Keep experimenting. :) Scott Tury > On Dec 5, 2016, at 12:17 AM, Gerriet M. Denkmann wrote: > > >> On 5 Dec 2016, at 02:34, J. Scott Tury wrot

Re: Message from iOS to watchOS

2016-12-04 Thread J. Scott Tury
/library/prerelease/content/documentation/General/Conceptual/WatchKitProgrammingGuide/SharingData.html . For class documentation you can reference: https://developer.apple.com/reference/watchconnectivity Hope this helps! Scott > On Dec 4, 2016, at 5:47 AM, Gerriet M. Denkmann wr

Re: Message from iOS to watchOS

2016-12-03 Thread J. Scott Tury
device per se. I would just send a notification: Local or remote. The behavior should be essentially the same. Send the title and message in the notification. You can add in any actions you would like your user to be able to have. Scott > Date: Sat, 03 Dec 2016 13:48:31 +0700 >

Re: NSAlert::runModal doesn't work on 10.6

2016-08-23 Thread Scott Ribe
On Aug 23, 2016, at 8:52 AM, Andreas Falkenhahn wrote: > > I really can't use NSApplicationMain() because AFAICS it also expects > to load a NIB file from the app bundle The nib to load at startup is specified in the plist, I bet if you leave that entry out, it won't try

Re: uitabbar translucency and hiding

2016-08-22 Thread Scott Ahten
trum, you can create a custom view controller container class with a set of views that specifically meet your needs without looking like a tab bar controller - therefore avoiding confusion since it would not behave like one. - Scott ___ Cocoa-dev maili

Re: unicode fraction symbol in a NSTextView

2016-06-22 Thread Paul Scott
Since the symbol is outside the ASCII range and your output encoding is UTF-8, that character requires 2 octets. Clearly, whatever application is reading the file isn't using UTF-8 encoding. Switch that application to UTF-8 and the character will display correctly. Sent from my iPhone > On Jun

Re: Protecting against "app nap"

2016-05-10 Thread Paul Scott
Did you try clicking “Prevent app nap” in the “Info” inspector for the app? Paul > On May 10, 2016, at 10:26 AM, Jonathan Taylor > wrote: > > Hi all, > > I’m hoping somebody can help me work out how to protect my code against the > effects of “app nap”. This code is driving a scientific exp

Re: BOOL parameter passed as nil object

2016-04-19 Thread Scott Ribe
retty severe trap for the unaware. (Especially the part where multiples of 256 can become == NO...) When it's a proper C99'ish bool, then all values are cast to bool at assignment, and so it is always == either 0 or 1. -- Scott Ribe scott_r...@elevated-dev.com http://

creating an application on the Mac

2016-03-12 Thread Scott Berry
Hello there, I am wondering if I am creating a wizard because I need to step people through a process of choosing from a few devices on the Mac such as a Victor Stream Reader which is a digital reader for the blind that uses an SD card and a Trekker Breeze GPS which uses and SD card, how do I g

catching statuses of lights

2016-01-29 Thread Scott Berry
Hello there, I have a project I am working on and I was wondering if anyone has had to catch a status of a light or set of lights. For example, green safe, yellow caution, red stop. Then I need to relay this to the program I am building so that it knows what the lights actually mean.

Re: adding frameworks to my project

2016-01-22 Thread Scott Berry
Binaries With Libraries" and there is a + sign that > appears below it. If you click on the +, you will be presented with a sheet > that has a search field and a list of frameworks that you can add to your > project. > > I hope this gets you in the right direction. >

adding frameworks to my project

2016-01-22 Thread Scott Berry
Hello there, I am having trouble seeing the frameworks that come with Xcode. I need to add some to my project such as the maps and the sound and I need to see which others are available. I thought I would add those first before redoing my code that way I am covered when I need to access them.

Re: How to save a Dictionary Network to a plist file?

2016-01-22 Thread Scott Ahten
NSUserDefaults. http://nshipster.com/nscoding/ - Scott ___ 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

making a pronunciation dictionary for Voiceover on the iphone

2016-01-04 Thread Scott Berry
Hello there, I have certain identifiers which must be read correctly in my program. In Voiceover, they don’t read correctly so I’d like to make a dictionary which Voiceover actually uses during the run of my program. Is this something that is supported or is this something I’ll need to make a

got alert to fire but have two ok buttons

2015-12-28 Thread Scott Berry
I have a bit of an inconvenience now. I have two okay buttons for my alert. I only need one after the alert. Where do I begin looking for the error? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderato

My alert is not firing at all

2015-12-26 Thread Scott Berry
Hello there, Here is the code I wrote to fire off my alert but when I run the program on the device the alert doesn’t want to fire so I am wondering what I have done wrong. I use Voiceover. // Alert Message for first load. @IBAction func buttonTapped(sender: AnyObject) { le

Re: Environment woes executing scripts from my OS X app

2015-12-16 Thread Paul Scott
Sorry, I messed up the script. It should have been this: set vars to { ¬ {name:"ANT_HOME", value:"/usr/local/apache-ant-1.9.6"}, ¬ {name:"CATALINA_HOME", value:"/Users/pscott/Projects/apache-tomcat-8.0.24"}, ¬ {name:"LAUNCHD_SCRIPT", value:"/Users/pscott/bin/logon_as"}, ¬ {done:true} ¬ } r

Re: Environment woes executing scripts from my OS X app

2015-12-16 Thread Paul Scott
By the way, you could also use this AppleScript, saved as an application, and run automatically via the System Preferences -> Users & Groups -> Current User -> Login Items configuration. set vars to { ¬ { name:"ANT_HOME", value:"/usr/local/apache-ant-1.9.6" }, ¬ { name:"CATALINA_HOME", v

Re: Environment woes executing scripts from my OS X app

2015-12-16 Thread Paul Scott
On Dec 16, 2015, at 15:47, Rick Mann wrote: > I'm working on an OS X app that unfortunately has to call a series of bash > and python scripts for part of the processing it does. I was able to include > the scripts in my app's bundle, and invoke them there, but the environment is > different w

a question concerning how to fire a message at the beginning of my application

2015-11-17 Thread Scott Berry
Hello there, I was wondering would it be wiser for me to put a notification or an art. This must be presented because otherwise this program could be dangerous without the message. It has to do with flying. ___ Cocoa-dev mailing list (Cocoa-dev@l

changing the name of my webview

2015-11-16 Thread Scott Berry
Hello there, In my main storyboard I’d like to call my web view “BrowseAirports.” How do I tell Xcode to do this so that when I call the code to open the web view it knows that my web view in storyboard is “BrowseAirports”? ___ Cocoa-dev mailing list

how to change the name of my variable in main.storyboard to BrowseAirports? This is what I want to call in the code when I type the code to connect to my web view?

2015-11-13 Thread Scott Berry
Hello there, I want to call my web view BrowseAirports in storyboard so that I can refer to this in my code telling the webView what to do?? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

showing a web view with a certain amount of links

2015-11-05 Thread Scott Berry
> > > I am building a program that requires me to look at airports. I have a site > that one can browse by US State and a link for other countries. I’d like > these links to show first. Then people can pick the airports they are most > likely to use. I don’t really want to display the whol

Re: ARC, blocks, capture variables

2015-09-28 Thread Scott Ribe
On Sep 28, 2015, at 6:24 PM, Quincey Morris wrote: > > On Sep 28, 2015, at 17:14 , Scott Ribe wrote: >> >> "Assigning block literal to a weak variable; object will be released after >> assignment" > > Well, you wouldn’t assign a literal there. You

Re: ARC, blocks, capture variables

2015-09-28 Thread Scott Ribe
when working on it; that sounds like a good suggestion, BUT: "Assigning block literal to a weak variable; object will be released after assignment" :-P -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ https://www.linkedin.com/in/scottribe/ (303) 722-0567 voice

Re: ARC, blocks, capture variables

2015-09-28 Thread Scott Ribe
On Sep 27, 2015, at 7:51 PM, Scott Ribe wrote: > > On Sep 27, 2015, at 7:03 PM, Quincey Morris > wrote: >> >> IIRC you can simply assign ‘self’ to a local variable just before assigning >> to ‘fun', and use the local variable name instead of ‘self’ inside

Re: ARC, blocks, capture variables

2015-09-27 Thread Scott Ribe
On Sep 27, 2015, at 7:03 PM, Quincey Morris wrote: > > IIRC you can simply assign ‘self’ to a local variable just before assigning > to ‘fun', and use the local variable name instead of ‘self’ inside the block. Well, that does work. Thanks! -- Scott Ribe scott_r...@elevate

ARC, blocks, capture variables

2015-09-27 Thread Scott Ribe
So how to get rid of the warning? -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ https://www.linkedin.com/in/scottribe/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin r

Re: Continue application processing with mouse down on a menu

2015-09-27 Thread Scott Ribe
rying about correct synchronization of that polling.) -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ https://www.linkedin.com/in/scottribe/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Pleas

Re: Continue application processing with mouse down on a menu

2015-09-27 Thread Scott Ribe
then yielding at key points, as in the old days of cooperative multi-processing, have way more problems than multiple threads. If you have computation that needs to keep running without blocking menu tracking and other event handling, you need to put it on its own thread, period. -- S

Re: Continue application processing with mouse down on a menu

2015-09-26 Thread Scott Ribe
On Sep 26, 2015, at 11:55 AM, Programmingkid wrote: > > I think the reasoning for this is the user interface is expected to be > responsive and if other processes are running, then the interface will be > sluggish. That *WAS* the reasoning, in 1984 ;-) -- Scott Ribe scott_r

Re: Continue application processing with mouse down on a menu

2015-09-26 Thread Scott Ribe
cessing even with the > mouse down? If the application is already processing on the main thread, clicking on a menu will not interrupt it. The menu just won't display & track until the main thread is idle. Processing on any other thread will not affect menu tracking, and vice versa.

Re: Odd Crash

2015-09-24 Thread Scott Ribe
missed, and is dealloc'ing something early. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ https://www.linkedin.com/in/scottribe/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not pos

Re: Odd Crash

2015-09-24 Thread Scott Ribe
down in a very specific order. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ https://www.linkedin.com/in/scottribe/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin request

Re: Puzzling memory creep

2015-09-04 Thread Scott Ribe
ng back gradually. And of course if it does leak with no code, you're ready to file a bug report and/or open a DTS incident. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ https://www.linkedin.com/in/scottribe/ (303) 722-0567 voice __

Re: Puzzling memory creep

2015-09-03 Thread Scott Ribe
e what happens to memory usage ;-) Also, you are aware that you can get the full stack trace for any allocation, right? (You may have to set an option in the instrument before you start the run, I don't remember.) -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev

Re: How to terminate an NSTask whenever my app terminates?

2015-09-01 Thread Scott Ribe
if there's any Cocoa or CF equivalent. Sorry for the confusion, this is actually something I've gotten backwards before. I've written the code for the child to monitor for the parent's exit, yet I still forget that it's necessary. Go figure... -- Scott Ribe

Re: How to terminate an NSTask whenever my app terminates?

2015-08-31 Thread Scott Ribe
main() {while(1) sleep(1);} Use NSTask to launch it. Kill your parent in various ways and verify that the child gets killed: kill -9, call abort, crash it with the time-honored *(char*)0 = 0. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ https://www.linkedin.com/in/scot

Re: Unsigned Modulo

2015-08-12 Thread Scott Ribe
On Aug 12, 2015, at 4:12 AM, Gerriet M. Denkmann wrote: > > This code produces some (for me) unexpected results: % is remainder NOT modulus. Unfortunately early editions of K&R had it misnamed, and that has stuck despite that error having been corrected well over 20 years ago. --

Re: 64-bit only iOS

2015-08-04 Thread Scott Ribe
On Aug 4, 2015, at 8:37 AM, Scott Ribe wrote: > > I am correct that it is currently not possible to submit a 64-bit-only build > to the App Store? > > Kind of a Catch-22; I have no 32-bit devices here anymore, and the simulator > in current Xcode doesn't offer them. I

64-bit only iOS

2015-08-04 Thread Scott Ribe
32&64??? -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ https://www.linkedin.com/in/scottribe/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: AfxIsValidAddress

2015-07-14 Thread Scott Ribe
DOCUMENTED* to do that, but it doesn't ;-) Of course the rest of your post, about not depending on it, would be valid even if it worked... This is a definite FUGGEDABOUTIT situation. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ https://www.linkedin.com/in/scottribe

Re: AfxIsValidAddress

2015-07-14 Thread Scott Ribe
s-advertised/> TL;DR, here you go: BOOL AfxIsValidAddress(const void *p, size_t nBytes) { return p != NULL; } -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ https://www.linkedin.com/in/scottribe/ (303) 722-0567 voice ___

Re: Cheating a synchronous call on the main thread

2015-06-29 Thread Scott Ribe
On Jun 29, 2015, at 2:50 PM, Gavin Eadie wrote: > > The main thread is not involved in the above, but the idea of an > “asynchronous-that-waits” == “apparently synchronous” call is demonstrated. That's simply not asynchronous. -- Scott Ribe scott_r...@elevated-dev.com http:

Re: Cheating a synchronous call on the main thread

2015-06-29 Thread Scott Ribe
ion that both waits and does not wait. Sorry, but it's time to open that box and see if the damned cat is dead or not ;-) -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ https://www.linkedin.com/in/scottribe/ (303) 722-0567 voice _

Re: Cheating a synchronous call on the main thread

2015-06-29 Thread Scott Ribe
like program behavior that is poorly specified. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ https://www.linkedin.com/in/scottribe/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do no

Re: Cheating a synchronous call on the main thread

2015-06-29 Thread Scott Ribe
rforming the work on a background thread, then using some callback to execute the "after" code when it's done--which is what you should be doing. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ https://www.linkedin.com/in

Re: C Assert in BSD Static Library

2015-06-23 Thread Scott Ribe
#x27;s just my personal style, that I refuse to define it to anything other than 1, because why should I have to remember that NDEBUG=0 also turns it *on*? As does NDEBUG? -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ https://www.linkedin.com/in/scottribe/ (303)

Re: C Assert in BSD Static Library

2015-06-23 Thread Scott Ribe
people build up all sorts of ASSERT macros of their own, with all sorts of config options... -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ https://www.linkedin.com/in/scottribe/ (303) 722-0567 voice ___ Cocoa-dev ma

Re: Language options: Objective-C, Swift, C or C++?

2015-06-17 Thread Scott Ribe
On Jun 17, 2015, at 2:04 PM, Jens Alfke wrote: > > Guys, talking about Swift vs. Obj-C/C/C++ has a slight amount of use, but if > we start dragging everyone’s pet language into the fray (Algol? Burroughs > B5000 assembly?) Dylan, dammit ;-) -- Scott Ribe scott_r...@elevated-

Re: Language options: Objective-C, Swift, C or C++?

2015-06-13 Thread Paul Scott
> On Jun 13, 2015, at 3:59 PM, Quincey Morris > wrote: > > I don’t want to take issue with the opinions being expressed in this thread, > but I was struck by the argument you used in coming to your opinion: > > On Jun 13, 2015, at 15:27 , Paul Scott <mailto:ps

Re: Language options: Objective-C, Swift, C or C++?

2015-06-13 Thread Paul Scott
Having perused the Swift documentation, viewed the pertinent Apple sessions, and listened to the arguments (mostly pro) surrounding Swift since its initial release, I’ve decided that the language provides (me) no additional benefits over Objective-C and C++, and indeed, Swift adds additional com

Re: How to enable local storage in WebView using Swift

2015-06-03 Thread Scott Ribe
es.localStorage = true > > I get a "WebPreferences does not have a member named ..." error. > > How can I do it? > > Thanks in advance, I don't know Swift, nor much about WebViews, but I'd guess it's because you got the member name wrong. Try localStorag

Re: Looking at self = [super init].

2015-06-03 Thread Scott Ribe
On Jun 3, 2015, at 6:30 AM, Alex Zavatone wrote: > > With that in mind, what should it have depended on instead? His point was not that such dependence was bad, nor even avoidable. His point was that the C++ was a steaming pile ;-) -- Scott Ribe scott_r...@elevated-dev.co

Re: Looking at self = [super init].

2015-06-01 Thread Scott Ribe
On Jun 1, 2015, at 10:43 PM, Britt Durbrow wrote: > > So…. it looks like clang at least is doing the right thing and calling the > destructor when the variable goes out of scope. Yep. But I believe with goto you can skip over a constructor--but at least you get a warning. -- S

Re: Looking at self = [super init].

2015-05-29 Thread Scott Ribe
ble in if expressions etc, but that seems like overkill here, since you would always run this on its own at the top of a block. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ https://www.linkedin.com/in/scottribe/ (303) 722-0

Re: Looking at self = [super init].

2015-05-29 Thread Scott Ribe
On May 29, 2015, at 12:17 PM, Alex Zavatone wrote: > > Typing == by habit. My mistake. Ah, *NOW* the conversation makes sense ;-) -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ https://www.linkedin.com/in/scottribe/ (303) 722-0567

Re: Looking at self = [super init].

2015-05-29 Thread Scott Ribe
On May 29, 2015, at 11:49 AM, Alex Zavatone wrote: > > Would this handle it properly? > > if (!(self = [super init])) { >return nil; > } Yes. > if (!(self == [super init])) No. But not sure whether you were asking about that or not… -- Scott Ribe scott_r...@

Re: objc_msgSend() selector name: tableView:objectValueForTableColumn:row:

2015-05-27 Thread Scott Ribe
of > older Xcode versions’ codegen. I’m pretty sure that a window and it’s views should not be trying to redraw after being closed… -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ https://www.linkedin.com/in/scottribe/ (303)

Re: objc_msgSend() selector name: tableView:objectValueForTableColumn:row:

2015-05-26 Thread Scott Ribe
now if Xcode 5 can run on Yosemite), or > drop 10.6 support. My decision was to do the latter; Snow Leopard is four > years old now. Time to move on. Well now, if this isn’t totally strange. I’m starting to see this problem *after* switching to Xcode 6.2 and switching my

Re: What is overwriting 'isa' with 0xbaddc0dedeadbead ?

2015-05-23 Thread Scott Ribe
DEADBEEF is what some memory debugging utilities write over memory it's freed. If it’s showing in your isa pointer, then you’re accessing an object which has been dealloc’d. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ https://www.linkedin.com/in/scottribe/ (303

Re: Optionals? A better option!

2015-05-15 Thread Scott Ribe
On May 15, 2015, at 11:06 AM, Kyle Sluder wrote: > > It's not valid to dereference a null pointer, but what happens when you > do is undefined. As in the olden days of OS 9 & before, when you could freely read & write through location 0, usually leading to great hil

Re: Converting to Window Coordinates

2015-04-22 Thread Scott Ribe
On Apr 22, 2015, at 10:10 AM, Dave wrote: > > I really can’t understand why it was ever defined to be bottom left, does > anyone know why? Normal Cartesian coordinates. (I agree the other way made sense, measuring from the menu bar…) -- Scott Ribe scott_r...@elevated-dev

Re: Where is my bicycle?

2015-04-06 Thread Paul Scott
On Apr 6, 2015, at 9:57 AM, Charles Srstka wrote: > > The problem, then, is likely the fact that NSCharacterSet considers a > “character” simply as a UTF-16 code point, rather than a true Unicode > character as Swift does. That should not matter. UTF-16 is a variable length encoding. It is gua

Re: Display an Alert Sheet at a Specified Screen Position

2015-03-26 Thread Scott Ribe
op of > the bottom view than at the top of the window.) I do it too. Be warned, starting with Mavericks things went wacko-batshit stupid if the sheet is near the screen bounds... -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ https://www.linkedin.com/in/scottribe/

Re: Official or correct explanation of numbers on the 1st column for every method/function call in process sample?

2015-03-17 Thread Scott Ribe
On Mar 17, 2015, at 4:26 PM, JongAm Park wrote: > > Then can the number of samples be interpreted as how long it took there... It can be taken as a very rough approximation of that. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567

Re: BOOL attribute types.

2015-02-18 Thread Scott Ribe
Brain farts happen... > On Feb 18, 2015, at 11:58 AM, Alex Zavatone wrote: > > Well, stupid me. You can't have a BOOL with a nil value. Thanks Scott. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303)

Re: BOOL attribute types.

2015-02-18 Thread Scott Ribe
On Feb 18, 2015, at 11:02 AM, Alex Zavatone wrote: > > In creating an autoDescription method for objects, it's important to know if > our BOOLs are NO or nil. ??? It's a char, not a pointer, simply an integer type. Nil is 0, NO is 0, assign 0 to an integer, you have

Re: Right-mouse click in tables not working correctly since 10.10.2?

2015-02-10 Thread Scott Ribe
On Feb 10, 2015, at 4:16 PM, Graham Cox wrote: > > If others are seeing this effect I'll file a bug, otherwise I'll just have to > put it down to something weird on my system. I'm not seeing it all all in the Finder, and haven't noticed it elsewhere. -- Scott Rib

Re: Advice for iOS web app with live feed

2015-01-14 Thread Scott Ribe
d provides helpers to assist with the protocol details and hand your data back to you. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: Blurry is the New Sharp

2015-01-05 Thread Paul Scott
On Jan 5, 2015, at 5:01 AM, Alex Zavatone wrote: > > On Jan 5, 2015, at 7:58 AM, Charles Jenkins wrote: > >> Leaving aside any discussion of whether it was a good idea to add "vibrancy" >> to the OS, I do have a question about how to use it. > > Um, it was a terrible amateurish idea. And a

Re: Beep ( frequency, duration)

2014-12-29 Thread Paul Scott
> On Dec 29, 2014, at 2:12 AM, Michael Crawford wrote: > > OpenAComponent( comp, &output ) > CloseComponent( output ) These are deprecated since — I believe — OS X 10.8. You should probably use the iOS compatible functions: AudioComponentInstanceNew(comp, &output) AudioComponentInsta

Re: Beep ( frequency, duration)

2014-12-28 Thread Paul Scott
On Dec 28, 2014, at 12:05 PM, Raglan T. Tiger wrote: > > Is it possible with Cocoa to generate a tone of a specified frequency and > duration to play synchronously? > > > -rags > You can use Audio Unit Framework from Objective-C or Swift to generate sound on the fly. For example, a sine wav

Re: Weird crash in FSRefCreate while saving NSDocument

2014-11-25 Thread Scott Ribe
rd-party kexts and/or any frameworks loaded that did not come from you or Apple. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Weird crash in FSRefCreate while saving NSDocument

2014-11-25 Thread Scott Ribe
On Nov 25, 2014, at 1:26 AM, Markus Spoettl wrote: > > My user says he doesn't experience sluggishness, he also tried rebooting the > machine and repair the disk permissions. Still crashes reliably every time. In that case, I'd personally suspect heap corruption. --

Re: Weird crash in FSRefCreate while saving NSDocument

2014-11-24 Thread Scott Ribe
a few things for you to possibly find out: is there a lot of file manipulation being done on that Mac, is performance of everything sluggish before this happens, and will it work after a reboot. -- Scott Ribe scott_r...@elevated-dev.com http://www.eleva

Re: how to reset another app's prefs

2014-11-20 Thread Scott Ribe
t to open a document, it would not even open that document. All of which is no longer true, so at least MS straightened out that little bit of dementia.) -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___

how to reset another app's prefs

2014-11-20 Thread Scott Ribe
leaks. And so on. So periodically (+ whenever it stops responding) I quit Word, copy preferences files from cached copies I keep that are set the way I want, and relaunch it. So, any way to for certain replace prefs with a know good set previously saved? -- Scott Ribe scott_r...@elevated-dev.com

Re: New CGContext warning in Yosemite

2014-11-17 Thread Scott Ribe
*Finder.app* is spewing, and just imagine them pulling the trigger on this. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Nil Coalescing and Optional Chaining?

2014-11-07 Thread Scott Ribe
On Nov 7, 2014, at 8:34 AM, David Wood wrote: > > Only now does it occur to me that the place to post this would have been a > Swift-dev mailing list. Is that even a thing? No, use of Swift is so intimately tied to Cocoa that they're having those discussions here. -- Scot

Re: Crash with ARC enabled on Xcode 6.1

2014-10-23 Thread Scott Ribe
der in > which things are called before main is called. The runtime is up. But of course, no run loop, no event handling. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (

Re: Crash with ARC enabled on Xcode 6.1

2014-10-22 Thread Scott Ribe
On Oct 22, 2014, at 3:45 PM, Beinan Li wrote: > > stop reason = signal SIGABRT When there's a SIGABRT, there's usually an error logged. You should look for that, because it might give a good clue. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303

Re: NSInvocation crashes in AutoreleasePool

2014-10-22 Thread Scott Ribe
was the appropriate one here... -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contac

Re: NSInvocation crashes in AutoreleasePool

2014-10-22 Thread Scott Ribe
On Oct 22, 2014, at 12:19 PM, Jonathan Mitchell wrote: > > Surely the code that returns the object pointed to by temp has to ensure that > the object has been correctly retained? So, maybe __autorelease? -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303)

Re: NSInvocation crashes in AutoreleasePool

2014-10-22 Thread Scott Ribe
of those compiler incantations with attributes to inform ARC (__unsafe_unretained?) - some kind of kludge to fool ARC -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@

Re: NSInvocation crashes in AutoreleasePool

2014-10-22 Thread Scott Ribe
On Oct 22, 2014, at 11:46 AM, Gerriet M. Denkmann wrote: > > But how to fix this? Can you actually retain a pointer that ARC expects to be already retained, or would be it a NOOP? Sorry, I only use manual memory management, so my previous reply may have been off-base. -- Scott Ribe s

Re: NSInvocation crashes in AutoreleasePool

2014-10-22 Thread Scott Ribe
ent threads. Caution, and the occasional "special technique", are required. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do no

Re: Wiring up MainMenu.xib

2014-10-19 Thread Scott Ribe
Sorry, duh, you wire it up to "First Responder". On Oct 19, 2014, at 8:47 AM, Scott Ribe wrote: > You don't need to wire that up in IB. You just need to implement the action > in your window controller. > > On Oct 19, 2014, at 8:36 AM, Luther Baker wrote: > >

Re: Wiring up MainMenu.xib

2014-10-19 Thread Scott Ribe
list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/scott_ribe%40elevated-dev.com > > This email sent to scott_r...@elevated-dev.com -- Scott Ribe scott_r...@e

Re: Setting the Selected Segment of a Segmented Control

2014-10-15 Thread Scott Ribe
would require you to set some flag before changing a control's state, so that the event handler for that event would know *not* to propagate changes. It would be an absolute nightmare to code to begin with, and even worse to maintain... -- Scott Ribe scott_r...@elevated-dev.com ht

Re: Code signing problem using shared framework in Yosemite

2014-10-12 Thread Scott Ribe
p embeds an Automator action, not quite the same as embedding a framework, but similar in that there's a code resource with its own signature.) -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-

Re: Kerning Pairs

2014-10-11 Thread Scott Ribe
into our model. You missed his point. Kerning can be much more complicated than what can be expressed in that kind of table. So Kyle's question is: what are you trying to accomplish with that table? -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/

Re: How to pretty print floating numbers (without loosing precision)?

2014-10-11 Thread Scott Ribe
On Oct 11, 2014, at 7:36 AM, Scott Ribe wrote: > On Oct 11, 2014, at 2:04 AM, Gerriet M. Denkmann wrote: > >> Note: converting to double does NOT loose any digits. > > Well, it has to. Not sure how you're getting that output, but a double has 52 > bits for th

Re: Concurrent tasks are getting hung up

2014-10-11 Thread Scott Ribe
e less likely I am to replace my home-grown task queues with the "modern" built-in stuff. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Concurrent tasks are getting hung up

2014-10-10 Thread Scott Ribe
ysical CPUs)/2 and (number of logical CPUs)x2. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: return string that is the difference between two other strings

2014-09-20 Thread Scott Ribe
ty little lamb she had" vs @"mary had a big lamb, a little fella of a lamb she had for sure" There is no simple definition of "the difference between two strings", and I don't think it's a basic need at all. -- Scott Ribe scott_r...@elevated-dev.com http

  1   2   3   4   5   6   7   8   9   10   >