Formatter and error windows (sheet AND modal)

2009-09-27 Thread Alex
ve an idea ? Alex ___ 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 Subscrip

Developer needed

2008-09-22 Thread alex
time position. Thanks and sorry for coercing this list. best, alex I do not represent AT&T or Yellowpages.com so please don't sue them for something I wrote here. __ D O T E A S Y - "Join the web hosting

Re: how to hack my own apps

2008-04-06 Thread alex
). Objective-C code is ridiculously easy to reverse- it's almost written out in text! One thing I notice that alot of people forget to do (which makes my life much easier) is strip debugging symbols. Not all folks that reverse-engineer code are hackers. :) alex On Apr 3, 2008, at 2:

Close Modal window after sheet ends

2015-08-24 Thread Alex Kac
I’ve got a modal window which opens a sheet to let the user enter a registration code. If the Reg code is accepted, I want to close the window after the sheet ends. However it doesn’t. I’ve tried a ton of different things and I believe it has something to do with the runLoop because dispatch tim

Re: Close Modal window after sheet ends

2015-08-24 Thread Alex Kac
} > On Aug 24, 2015, at 11:41 AM, Alex Kac wrote: > > I’ve got a modal window which opens a sheet to let the user enter a > registration code. If the Reg code is accepted, I want to close the window > after the sheet ends. However it doesn’t. I’ve tried a ton of different >

Re: Auto layout in XCode 6.4

2015-08-25 Thread Alex Zavatone
It's not the most straightforward thing in existence. I've found that watching several YouTube videos will do more good than most anything else. Sadly, there is one 7 minute video that made things pretty clear but I can't find it (not Ray's). This one is pretty good. https://www.youtube.com/w

Getting started with Cocoa Bindings in My Project?

2015-09-06 Thread Alex Hall
worth. I really want to grasp this concept, though, and I'm still researching and reading. I'm hoping that being able to ask specific questions about my specific model will help to clarify what general-purpose explanations haven't. Thanks in advance for your help and patience. -

Re: Getting started with Cocoa Bindings in My Project?

2015-09-06 Thread Alex Hall
t's how I understand the whole procedure. I thought it would be easier to just say what I've got then to try to keep replying in-line. Thanks again for the responses! > On Sep 6, 2015, at 14:14, Ken Thomases wrote: > > On Sep 6, 2015, at 10:59 AM, Alex Hall wrote: > >&

Re: Getting started with Cocoa Bindings in My Project?

2015-09-07 Thread Alex Hall
> On Sep 7, 2015, at 02:07, Ken Thomases wrote: > > On Sep 7, 2015, at 12:01 AM, Alex Hall wrote: > >> My first step is to make a KVO-compliant backing store, because Swift arrays >> won't do the job. As you said, my goal of updating an array and having my

Re: Getting started with Cocoa Bindings in My Project?

2015-09-07 Thread Alex Hall
ce of my model in my view controller), but I can't set the controller key, because that text field is refusing to let me edit it. I thought I'd put tweetsTab in here, but that is apparently the wrong way to go about it, unless Xcode is doing something funny? I hope I'm making sens

DockTile plugin + Sandbox + App Groups

2015-09-08 Thread Alex Kac
If you have a Docktile plugin - it runs in the com.apple.dock.extra process, not under yours. So it doesn’t have simple access to your NSUserDefaults. If your app is sandboxed and using App Groups for its preferences files, I can’t find any way to get the docktile plugin to actually read a prefe

Basics of Cocoa Bindings

2015-09-08 Thread Alex Hall
e few developers I know only do iOS; and none of my family or friends knows anything about programming at all. I've tried getting into Apple development off and on for a few years, but Xcode has finally gotten to the point where it's usable enough with Voice

Re: Basics of Cocoa Bindings

2015-09-11 Thread Alex Hall
> On Sep 11, 2015, at 21:04, Quincey Morris > wrote: > > On Sep 11, 2015, at 15:49 , Alex Hall <mailto:mehg...@icloud.com>> wrote: >> >> I followed all of that, and I see what you're saying. The binding to an >> array is, to it, no different

Re: Basics of Cocoa Bindings

2015-09-11 Thread Alex Hall
d. Anyway, just something to watch if anyone decides to have a look at the file. > On Sep 11, 2015, at 23:20, Alex Hall wrote: > > >> On Sep 11, 2015, at 21:04, Quincey Morris >> wrote: >> >> On Sep 11, 2015, at 15:49 , Alex Hall > <mailto:mehg...@icl

Re: Basics of Cocoa Bindings

2015-09-12 Thread Alex Hall
ts of an array or dictionary in a table, what would you use instead? > On Sep 12, 2015, at 00:05, Quincey Morris > wrote: > > On Sep 11, 2015, at 20:20 , Alex Hall <mailto:mehg...@icloud.com>> wrote: >> >> Okay, the error I'm seeing (about [ViewController

Re: Basics of Cocoa Bindings

2015-09-12 Thread Alex Hall
I've gotten bindings working, I want to use them, at least until I fully grasp them and am comfortable using them whenever the situation calls for them. I won't be switching away from them for a while. > > Sent from my iPhone > >> On Sep 12, 2015, at 9:28 PM, Alex Hall

Working with NSTextFields

2015-09-15 Thread Alex Hall
inspectors, for the field or its child cell. I don't want rich text, just spellchecking. Is it hiding somewhere, or is this done programmatically? As always, thank you for your time and help. -- Have a great day, Alex Hall mehg...@icloud.com ___

Re: Working with NSTextFields

2015-09-15 Thread Alex Hall
> On Sep 15, 2015, at 13:20, Jens Alfke wrote: > > >> On Sep 15, 2015, at 9:11 AM, Alex Hall wrote: >> >> * When I call myField.stringValue="some text", that string ("some text") >> appears as expected, but it's highlighted. That

Re: Working with NSTextFields

2015-09-15 Thread Alex Hall
er, but it would be really nice to be able to change this according to different user actions. > On Sep 15, 2015, at 13:20, Jens Alfke wrote: > > >> On Sep 15, 2015, at 9:11 AM, Alex Hall wrote: >> >> * When I call myField.stringValue="some text", that st

Re: Is it possible to transfer data by using light

2015-09-17 Thread Alex Zavatone
Yes. How do you think TV remotes work? They use IR transmitters/receivers. They are, however, PAINFULLY SLOW. When we were making FiOS TV, we had to create an app called FiOS Mobile Remote for the iPhone that would control your FiOS set top box. EVEN THOUGH the iPhone had to pipe its commands

DockTile Plugin: Failed to set up extra plugin. file:///Applications/Informant.app/ Plugin in quarantine

2015-09-17 Thread Alex Kac
So interestingly, the plugin works fine on my El Capitan install, but not my Yosemite install. On my Yosemite install, I checked the code-signing: codesign --verify --deep --verbose=2 Informant.app and the end result is: Informant.app: valid on disk Informant.app: satisfies its Designated Require

Re: Working with NSTextFields

2015-09-18 Thread Alex Hall
ange instead, but the point is that I see that error as soon as I try to modify the accessibility details of the text field, and the app won't even build. > > Keep in mind that with Swift, the error that’s reported is still sometimes a > secondary error. What it sa

Tracking down source of [_NSControllerObjectProxy copyWithZone:]… error

2015-09-19 Thread Alex Hall
crollView.contentView.documentView as! NSTextView } } Anyway, any suggestions on how to hunt down the cause of this copying bug would be appreciated. Thanks everyone! -- Have a great day, Alex Hall mehg...@icloud.com ___ Cocoa-dev mailing list (Co

Re: Tracking down source of [_NSControllerObjectProxy copyWithZone:]… error

2015-09-20 Thread Alex Hall
> On Sep 20, 2015, at 02:04, Quincey Morris > wrote: > > On Sep 19, 2015, at 20:09 , Alex Hall <mailto:mehg...@icloud.com>> wrote: >> >> [_NSControllerObjectProxy copyWithZone:]: unrecognized selector sent to >> instance 0x60800ae0 >>

Re: Working with NSTextFields

2015-09-20 Thread Alex Hall
> On Sep 18, 2015, at 21:24, Quincey Morris > wrote: > > On Sep 18, 2015, at 16:46 , Alex Hall <mailto:mehg...@icloud.com>> wrote: >> >> myField.accessibilityHelp="new help message" >> > > Well, it’s a fascinating p

Re: Is it possible to transfer data by using light

2015-09-21 Thread Alex Zavatone
On Sep 21, 2015, at 11:54 AM, Sixten Otto wrote: > On Sun, Sep 20, 2015 at 9:55 PM, Jens Alfke wrote: > >> But honestly, if you're going this route, it will be much faster to >> transmit QR codes, since each code contains thousands of bits. >> > > Especially given that recent versions of iOS

Error unwrapping an optional which isn't an optional

2015-09-21 Thread Alex Hall
t'. As I said, I'm just curious about this, not desperate to fix it and totally lost like a couple weeks back. :) My delegate does a fine job doing what I want, and I might never use a binding for this job at all. The error is just such an odd one, considerin

Re: Continue application processing with mouse down on a menu

2015-09-26 Thread Alex Zavatone
On Sep 26, 2015, at 10:23 AM, Scott Ribe wrote: >> It has seem like a rule that has been in place forever that an application >> pauses processing when the mouse is down on a menu. Why? It's not like all the threads are locked in a repeat loop. ___

Background Helper app - brings up UI element, needs CMD-C/X/V

2015-09-28 Thread Alex Kac
for text fields works now. Stuff like cut, copy paste. So with that in mind, how do I enable that to work? --- Alex Kac - El capitán ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Re: Background Helper app - brings up UI element, needs CMD-C/X/V

2015-09-28 Thread Alex Kac
events, I’m not sure how to set them up and get them in my NSViewController… > On Sep 28, 2015, at 2:30 PM, Jens Alfke wrote: > > >> On Sep 28, 2015, at 1:05 PM, Alex Kac > <mailto:a...@webis.net>> wrote: >> >> The problem is that without a menu bar, non

Re: Background Helper app - brings up UI element, needs CMD-C/X/V

2015-09-28 Thread Alex Kac
OK I think I found something: http://cocoa.thedizzyheights.com/2010/07/cut-copy-and-paste-in-lsuielement-applications/ http://stackoverflow.com/questions/970707/cocoa-keyboard-shortcuts-in-dialog-without-an-edit-menu I’m going to try that now. > On Sep 28, 2015, at 3:22 PM, Alex Kac wr

Re: Background Helper app - brings up UI element, needs CMD-C/X/V

2015-09-28 Thread Alex Kac
OK I found the best solution :) Leave the MainMenu in the NIB. It won't be displayed, but all the actions will be handled properly. > On Sep 28, 2015, at 3:38 PM, Ken Thomases wrote: > > On Sep 28, 2015, at 4:22 PM, Alex Kac wrote: >> >> I guess I need more he

questions on WebView for Mac apps

2015-09-29 Thread Alex Hall
p being called. This is a bit off the topic, but are there any auto layout gotchas I should know? I've read a lot about how terrible scroll views with auto layout can be, and I just want to know if a similar thing will happen with this view too. I think that's it.

Implications of disabling ATS?

2015-09-30 Thread Alex Hall
;t have ATS blocking everything. I'm not sure what the best course is here. Thanks. -- Have a great day, Alex Hall mehg...@icloud.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: questions on WebView for Mac apps

2015-09-30 Thread Alex Hall
our Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/mehgcap%40icloud.com > > This email sent to mehg...@icloud.com -- Have a great day, Alex Hall mehg...@icloud.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.

Re: questions on WebView for Mac apps

2015-09-30 Thread Alex Kac
_ > > 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 Subscription: > https://lists.a

Re: questions on WebView for Mac apps

2015-09-30 Thread Alex Hall
> On Sep 30, 2015, at 17:35, Charles Srstka wrote: > >> On Sep 30, 2015, at 4:28 PM, Jens Alfke > <mailto:j...@mooseyard.com>> wrote: >> >>> On Sep 30, 2015, at 2:20 PM, Alex Hall >> <mailto:mehg...@icloud.com>> wrote: >>> >

Re: How to install 10.11 ?

2015-10-01 Thread Alex Zavatone
If it's any consolation, I couldn't update my Retina MBP 15 either initially. When the installer was about to restart "An error occurred. Please try again." i had to reboot and install the OS again holding down some command key sequence. Only after a 1 hour install and putting a fresh install

Re: questions on WebView for Mac apps

2015-10-01 Thread Alex Hall
IZER; > > It's max 3 minutes of work. Fair enough. As I said, I hadn't yet looked into how to do it, it just seems strange to not offer the object we're supposed to prefer in IB at all. > > > On Thu, Oct 1, 2015 at 3:00 AM, Alex Hall <mailto:mehg...@icloud.com>

An off-topic question/post that may be worth a short read. (Sorry for the xpost)

2015-10-02 Thread Alex Zavatone
de 6.4, since I can't get git working worth a damn on Xcode 7.0.1. In any case, hope you all appreciate that what I've learned from your time and efforts to help each other (and me) out will be passed on to bring Objective-C skills into folks on the edge of the Kalahar

Re: Implications of disabling ATS?

2015-10-02 Thread Alex Hall
> On Oct 2, 2015, at 16:01, Kyle Sluder wrote: > > On Wed, Sep 30, 2015, at 03:45 PM, Mike Abdullah wrote: >> >>> On 30 Sep 2015, at 17:17, Jens Alfke wrote: >>> >>> >>>> On Sep 30, 2015, at 7:06 AM, Alex Hall wrote: >>>>

Re: Mac OSX 10.11 and XCode

2015-10-05 Thread Alex Zavatone
That's it. Dave. That's it. My Checkout window still has the nasty cell string overlap, but I can check in to Git from the app without causing a SIGSEV. I disconnected my Thunderbolt display off of my 15" MBP and I was able to commit a file without crashing. I tried 2 installs of 7.0.1 las

Re: Handling http:// URLs

2015-10-13 Thread Alex Zavatone
Yeah, they do. Just change your scheme to rickmann://myurlshallfollow and you register the scheme with the app. Is that what you are referring to? On Oct 13, 2015, at 8:20 PM, Rick Mann wrote: > I thought iOS 8 (or 7?) introduced support for iOS apps to handle http URLs. > Specifically, I c

Re: UILabel is maiming my Character

2015-10-14 Thread Alex Zavatone
NSAttributedText works really nice with these. I'll send you some material on that. On Oct 14, 2015, at 7:02 AM, Gerriet M. Denkmann wrote: > I put into some iOS 9 app (Xcode 7.0) 4 UILabels. > All have Clip Subviews = off, font size 96 with a coloured background, text > plain = “ฟี้กุฎุมพี”.

Re: UILabel is maiming my Character

2015-10-15 Thread Alex Zavatone
;>> >>> These UILabels are ultimately meant to go into UITableViewCells (without >>> coloured background). >> >> You will probably need to use an attributed string that specifies a taller >> line height than normal. This happens automatically when the system

Re: App Transport Security has blocked a cleartext HTTP for a local IP

2015-10-15 Thread Alex Zavatone
What happens if you only use this: NSAllowsArbitraryLoads ?? On Oct 15, 2015, at 3:56 PM, Marek Hrušovský wrote: > I read on some blogposts that ios9 GM did not support IP addresses for ATS. > Do not know if this has changed. > > On Thu, Oct 15, 2015 at 9:06 PM, Devarshi Kulshreshtha < > deva

Labeling switches/checkboxes on iOS

2015-10-20 Thread Alex Hall
lways goes below toggles like this? Mostly, I'm wondering if there's anything VO is ignoring on the screen, which I should put in my own apps and then hide from VO. I hope I'm making at least some sense; this question seemed so simple

How to debug [NSObject(NSKeyValueObserverNotification) willChangeValueForKey:] crash

2015-10-21 Thread Alex Kac
Our app is using a custom split view controller that we're getting rid of for the next major release, but for the CURRENT release we still have it. The problem I have is that on iOS 9 we're seeing the above when we hide the master view and show it a few times over and over agian. Its random wh

Just a little off topic update.

2015-10-23 Thread Alex Zavatone
Africa and just how fast they take to getting their heads around iOS. This is really good. Hoping you all enjoy the off topic, yet still cocoa related diversion. All the best from Windhoek West, Namibia, Alex Zavatone ___ Cocoa-dev mai

More of a dev tools question, so please advise if this is the wrong place to ask - automating the Network Link Conditioner

2015-11-03 Thread Alex Zavatone
e set up the network link conditioner control panel and automated changing the settings on it a la AppleScript or another tool? If this would be of use to anyone else, I'll happily share. Cheers. - Alex Zavatone ___ Cocoa-dev mailing list

Swift circular imports

2015-11-03 Thread Alex Kac
I’ve got a bit of a foggy head this morning so perhaps I’m just not thinking clearly. We are moving our code from Obj-C to swift. All new code is in Swift. We are hitting an issue with a circular import however. So here is an example: App Delegate is still in ObjC, but all new code is written i

Re: Swift circular imports

2015-11-03 Thread Alex Kac
2015, at 10:07 AM, Alex Kac wrote: > > I’ve got a bit of a foggy head this morning so perhaps I’m just not thinking > clearly. We are moving our code from Obj-C to swift. All new code is in > Swift. We are hitting an issue with a circular import however. > > So here is an exa

Re: Multiple simultaneous UIAlertControllers

2015-11-05 Thread Alex Zavatone
Make a queue. Sent from my iPhone > On Nov 5, 2015, at 6:10 PM, Carl Hoefs wrote: > > I don't want more than 1 alert presented at a time, of course, but they get > generated asynchronously. I thought dispatch_get_main_queue() would nicely > serialize any that occur. Thus David's comment that

Re: Multiple simultaneous UIAlertControllers

2015-11-05 Thread Alex Zavatone
A queue of content to be in each alerts. I think we've all had this issue. If there is more than one alert, then have a little number within the alert so that you know it's alert #n of nn alerts. And then each OK or Cancel button displays the next alert until they are gone. Add the alert conte

runOnMainQueueWithoutDeadlocking and all its evils.

2015-11-06 Thread Alex Zavatone
But seriously, WHY? Thank you. - Alex Zavatone ___ 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/U

Re: Multiple simultaneous UIAlertControllers

2015-11-06 Thread Alex Zavatone
On Nov 5, 2015, at 6:58 PM, Carl Hoefs wrote: > Thanks for the tip, I'll look into it. > > (As a general thought, though, it would appear that UIAlertController > should be a singleton app-wide, and it should manage its own serialized > presentation. Any other solution seems like external plumbi

Re: runOnMainQueueWithoutDeadlocking and all its evils.

2015-11-09 Thread Alex Zavatone
to the main queue and an alternative in case there some realities I didn't forsee. It will be quite nice to reduce the 60+ cases of use of these. Cheers > > >> On 6 Nov 2015, at 18:23, David Duncan wrote: >> >>> >>> On Nov 6, 2015, at 8:36 AM, Alex Zav

Re: runOnMainQueueWithoutDeadlocking and all its evils.

2015-11-09 Thread Alex Zavatone
On Nov 6, 2015, at 1:23 PM, David Duncan wrote: > >> On Nov 6, 2015, at 8:36 AM, Alex Zavatone wrote: >> >> Bearing in mind my experience dealing with code in the past that was chock >> full of runOnMainQueueWithoutDeadlocking calls, I can not fathom why someone

Instancetype and refactoring methods

2015-11-09 Thread Alex Zavatone
ject that holds the method a better choice than id? It appears so, but just thought I'd ask the group. Thanks in advance, Alex Zavatone ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: Instancetype and refactoring methods

2015-11-09 Thread Alex Zavatone
isn't even declared in the protocol. I don't know how it worked in the first place. Spooky code is spooky. Thanks, Jens. Always appreciated. On Nov 9, 2015, at 2:20 PM, Jens Alfke wrote: > >> On Nov 9, 2015, at 10:58 AM, Alex Zavatone wrote: >> >> Before I g

The joys of people using valueForKey to get objects out of a dictionary.

2015-11-10 Thread Alex Zavatone
It's been about 4 or 5 years since I made this mistake but I've just seen a massive swath of code where every access of a dictionary object is using valueForKey instead of objectForKey. I've got a few examples of why this is a "really bad idea"™, and certainly might explain why lots of that cod

Re: The joys of people using valueForKey to get objects out of a dictionary.

2015-11-10 Thread Alex Zavatone
@ within our key names, I haven't seen much here that indicates why it's dangerous, nor why the code I'm looking at that uses valueForKey on dictionaries needs to be wrapped in @try/@catch statements. For what we're doing on a daily basis, if we're not using @

Re: The joys of people using valueForKey to get objects out of a dictionary.

2015-11-10 Thread Alex Zavatone
On Nov 10, 2015, at 2:15 PM, Jens Alfke wrote: > >> On Nov 10, 2015, at 10:52 AM, Alex Zavatone wrote: >> >> Here's a great reason to use objectForKey: wherever possible instead of >> valueForKey: - valueForKey: with an unknown key will throw >> NSUnk

Re: The joys of people using valueForKey to get objects out of a dictionary.

2015-11-10 Thread Alex Zavatone
And you guys have no idea how useful this discussion was to me today. Even though the KVO valueForKey: method doesn't crater with an NSUnknownException with ease, it turns out that this wonderful code is also using the KVO method of setValue: forKey: on a dictionary. And guess what? *** Termin

UserDefaults not letting me access a dictionary?

2015-11-14 Thread Alex Hall
d error out right there, though. I haven't played much with user preferences before, so I may well be missing something, but it seems easy enough to use and there shouldn't be anything funny going on. Any thoughts? Thanks! -- Have a great day, Alex Hall mehg...@icloud.com ___

Re: Voiceover support

2015-11-14 Thread Alex Hall
requests or moderator comments to the 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/mehgcap%40icloud.com > > This email sent to mehg...@icloud.com -- Hav

Re: UserDefaults not letting me access a dictionary?

2015-11-16 Thread Alex Hall
> On Nov 14, 2015, at 15:41, Quincey Morris > wrote: > > On Nov 14, 2015, at 10:18 , Alex Hall <mailto:mehg...@icloud.com>> wrote: >> >> In a playground, accessing a dictionary of [String:Bool] works fine, as >> expected. In the app, th

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

2015-11-17 Thread Alex Hall
.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 Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/mehgcap%

Re: Installing older OS X

2015-11-17 Thread Alex Zavatone
VM Ware? I'm running 10.6.8 on this Mac, 10.5.whatever on another and keep a few external HDs around and spare Macs and install images for this purpose. On Nov 17, 2015, at 8:02 PM, Graham Cox wrote: > Yeah, Apple really make it hard to set up older OS installs for dev testing. > > If you co

Re: Installing older OS X

2015-11-18 Thread Alex Zavatone
Hy, that's a nice little tip. Thanks, man. Sent from my iPhone On Nov 18, 2015, at 2:31 AM, Charles Srstka wrote: >> On Nov 18, 2015, at 1:22 AM, Quincey Morris >> wrote: >> >>> On Nov 17, 2015, at 23:13 , Charles Srstka >> > wrote: >>> >>> Oh, sorry, I

Re: KVO question

2015-11-18 Thread Alex Zavatone
Are you implying that one KVO is blocking the others? Sent from my iPhone > On Nov 17, 2015, at 8:18 PM, Graham Cox wrote: > > I’m using KVO to observe a bunch of properties. > > Most of these properties are split out into simple things that set a single > value, but internal to my object, so

Re: [OT] Good XML Viewer App for Mac

2015-11-20 Thread Alex Zavatone
Would Textmate be recommended here? Sent from my iPhone > On Nov 20, 2015, at 8:47 AM, Charles Jenkins wrote: > > I don’t remember where I got the script, but I use TextWrangler in > conjunction with an XML formatter script to view XML documents. > > -- > > Charles > > On November 20, 2015

dateFromString won't accept this string:

2015-11-22 Thread Alex Hall
Hey list, I’m using NSDateFormatter.dateFromString() to make a date from the date string in a tweet. However, it seems to be returning nil, and I’m not sure why. Is there something else I have to do, like tell the formatter what order to expect components to be in? The string is something like:

Re: dateFromString won't accept this string:

2015-11-22 Thread Alex Hall
> On Nov 22, 2015, at 5:06 PM, Jerry Krinock wrote: > > >> On 2015 Nov 22, at 13:12, Alex Hall wrote: >> >> Is there something else I have to do, like tell the formatter what order to >> expect components to be in? > > Yes, and more. You must s

Re: dateFromString won't accept this string:

2015-11-22 Thread Alex Hall
> On Nov 22, 2015, at 6:04 PM, Alex Hall wrote: > > >> On Nov 22, 2015, at 5:06 PM, Jerry Krinock wrote: >> >> >>> On 2015 Nov 22, at 13:12, Alex Hall wrote: >>> >>> Is there something else I have to do, like tell the formatter wha

Re: dateFromString won't accept this string:

2015-11-23 Thread Alex Hall
> On Nov 23, 2015, at 8:00 AM, Sandor Szatmari > wrote: > > Alex, > > Have you tried looking at NSDataDetector. > http://nshipster.com/nsdatadetector/ <http://nshipster.com/nsdatadetector/> Thanks for the suggestion. I don't think that would apply here, tho

Re: dateFromString won't accept this string:

2015-11-23 Thread Alex Zavatone
Have you looked into The spec for date formatting? It is seriously helpful. It's some ISO document. Specify the format at which the date is coming in and it should convert. I will send you my crappy routines for this for iOS. Sent from my iPhone > On Nov 23, 2015, at 9:06 AM, A

Re: dateFromString won't accept this string:

2015-11-23 Thread Alex Hall
> On Nov 23, 2015, at 4:32 PM, Sandor Szatmari > wrote: > > Alex, > > What spec are you referring to? Link? I was playing around with > NSDataDetector for pulling dates out of strings in XML dumps of excel files > for an internal tool I was writing. NSDataDetect

Re: dateFromString won't accept this string:

2015-11-23 Thread Alex Zavatone
great reference link later on. From what I remember, it’s pretty important to pay attention to the character for certain types of time/date formatting and it isn’t easy to discover unless you dig pretty deep into the docs. In any case, I tossed Alex Hall a bunch of samples. What I had

Making custom table cells for view-based tables on mac?

2015-11-23 Thread Alex Hall
Hello list, My Twitter app is working well with its Cocoa bindings and default table cells, but I want to do more with said table cells. Right now, I put *all* the text into the cell's label, which works fine. I'd like to put the sender, tweet text, and timestamp each in their own fields, though

Re: xcodebuild and PMD

2015-11-26 Thread Alex Zavatone
What’s PMD? On Nov 26, 2015, at 3:16 PM, John Michael Zorko wrote: > > Hello, all … > > I’m exploring how to plug our iOS builds into our existing PMD-based code > sniffing tool. We’re using Xcode 7.1.1. Is there a way that I can process > xcodebuild’s output (or hook into the Xcode analyzer

Re: iOS: Using AppDelegate as an app-wide singleton

2015-12-01 Thread Alex Zavatone
I'm more of a fan of special case singletons, or else you essentially create one big global al over again. Also, the AppDelegate class has certain responsibilities. For organizational purposes, I feel most comfortable in creating a singleton for the purpose of the task at hand. On Dec 1, 20

Re: iOS: Using AppDelegate as an app-wide singleton

2015-12-01 Thread Alex Zavatone
What does Apple do on this? I think their standard is to use shared in the name. On Dec 1, 2015, at 7:33 PM, Quincey Morris wrote: > On Dec 1, 2015, at 16:20 , Carl Hoefs wrote: > >> The following seems to be working out for me. >> >> #import "AppCommon.h" >> @implementation AppCommon >> +

Re: iOS: Using AppDelegate as an app-wide singleton

2015-12-01 Thread Alex Zavatone
> [NSNotificationCenter defaultCenter] > > Neither NSApplication, NSUserDefaults nor NSNotificationCenter technically > adhere to the Singleton pattern -- although everyone labels this technique as > such. > > https://en.wikipedia.org/wiki/Singleton_pattern Yeah, but a

Re: Best Control for a Matrix these days?

2015-12-03 Thread Alex Kac
On El Capitan, NSCollectionView gives you the most control over row/column layout possible since it mirrors iOS and you can write your own collection layout flow. > On Dec 3, 2015, at 11:54 AM, Lee Ann Rucker wrote: > > That doesn't give you enough control over row/column layout. How about nes

iOS - force app to be restarted in the background.

2015-12-21 Thread Alex Zavatone
being restarted in the background and it's not reconfiguring itself properly or going through the normal startup process in that case. BKUnsuspendLimit exceeded 15 wakes in 300 sec To test this, is there any way to tell the OS to relaunch the app in the background? Thanks in ad

Frameworks in the Helper LoginItems app

2015-12-23 Thread Alex Kac
I’ve got an app with a helper in the Contents/Library/LoginItems path. Both use AFNetworking.framework. I currently install AFNetworking.framework in the main app’s Framework path. I would like the helper to use AFNetworking from the main app’s Framework’s folder. I’ve tried setting the run pa

Re: Finder-like user interface?

2015-12-28 Thread Alex Zavatone
inish after clicking on a disclosure triangle in an NSOutlineView when in the old days, the contents would either display or hide instantly. It would be awesome if there is a way to get the instant response that we used to get. The less superfluous animations, the better. Thanks, Alex Zavatone O

Re: got alert to fire but have two ok buttons

2015-12-28 Thread Alex Zavatone
How can we help you if we can't see the code you used to fire an alert? Please supply the code that is causing this. Thanks. On Dec 28, 2015, at 1:04 PM, Scott Berry wrote: > I have a bit of an inconvenience now. I have two okay buttons for my alert. > I only need one after the alert. Where

Re: CG Error with popovers - known issue?

2016-01-01 Thread Alex Kac
We’ve seen the same issue. So its definitely an OS X issue. >> On 31 Dec 2015, at 9:32 AM, Jonathan Mitchell >> wrote: >> >> I am seeing the exact same issue with NSPopover on 10.11. >> The stack trace is identical. >> Did you manage to make any further progress with this? >> > > > Not reall

Re: Strange app crash

2016-01-01 Thread Alex Zavatone
Mac OS or iOS? You state there is a crash, but don't supply a crash log or tell us what type of a crash it is. How do you expect us to help you? Help us help you. On Jan 1, 2016, at 9:14 PM, SevenBits wrote: > Hi list, > > Xcode has decided not to cooperate with me. > > My latest app is cra

Re: Strange app crash

2016-01-01 Thread Alex Zavatone
Am I correct in assuming that it's throwing an exception before it's drawn the first window? If that is the case, check your window XIB. It's possible that you have something mis-wired there. If you replace your first XIB with a placeholder, does the problem go away? On Jan 1, 2016, at 9:54

Re: making a pronunciation dictionary for Voiceover on the iphone

2016-01-06 Thread Alex Hall
dmin requests or moderator comments to the 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/mehgcap%40icloud.com > >

Re: Only assign value to variable if not nil.

2016-01-06 Thread Alex Zavatone
Bingo. Ternary operators. Thanks all. On Jan 6, 2016, at 5:45 PM, Alex Zavatone wrote: > Hi all. I was just extending some of my configuration file support on iOS to > add move from one config file to one master and then a product specific one. > > So, in the master, i'

Only assign value to variable if not nil.

2016-01-06 Thread Alex Zavatone
e assigning, but I'm figuring there's something I could learn here and one of you just might know what that is. Cheers, Alex Zavatone ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator com

Re: Panes vs. Separate Windows

2016-01-10 Thread Alex Zavatone
On Jan 9, 2016, at 5:19 PM, Rick Mann wrote: > In complex apps (e.g. CAD apps, IDEs) a given document has many auxiliary > windows. The trend in UI at Apple has been to consolidate these into panes in > a single window. I've always preferred separate windows (e.g. separate > toolbar window).

Re: Panes vs. Separate Windows

2016-01-11 Thread Alex Zavatone
On Jan 11, 2016, at 2:17 AM, Britt Durbrow wrote: > My preference would be multiple windows (one primary document window and > several utility panel windows) that can be snapped into place against each > other. This gives the freedom to use multiple monitors while also having the > screen-real

Re: Panes vs. Separate Windows

2016-01-11 Thread Alex Zavatone
Way back in the mid '90s, there was some double click tool that simply felt like the holy grail to me. You double clicked or option clicked on the title of a window and it would turn that window into the "floating windoid" title bar only. We took this model and made it so that when you collaps

Re: enum as String

2016-01-11 Thread Alex Zavatone
I've got a few things set up in Objective-C for getting a string value from an enum but I'm sure it's different in Swift. I can send the Objective-C ones if you think they would be helpful. On Jan 11, 2016, at 10:37 AM, Eric E. Dolecki wrote: > I have the following enum > > *enum SomeMode: St

NSTableView registerNib:forIdentifier: - multiple IDs in a single NIB

2016-01-14 Thread Alex Kac
I have a NIB with two views that I want to use depending on circumstances. I call one “weatherCell” and one “weatherCellNarrow”. I register it like this: - (NSString*)identifierForWeatherCell { return _narrowView ? @"weatherCellNarrow":@"weatherCell"; } nib = [[NSNib alloc] i

  1   2   3   4   5   6   7   8   9   10   >