Re: Auto layout in XCode 6.4

2015-08-25 Thread Conrad Shultz
> On Aug 25, 2015, at 4:23 AM, Dave wrote: > > Hi All, > > I’m trying to get my head around Auto Layout in XXCode, but can’t seem to > figure out some basic things. > > I have a sample project with a View made up of two Controls, a Text Field and > a Button, like so: > > | [TextView]

Re: removeItemAtPath in 10.7

2015-08-26 Thread Conrad Shultz
> On Aug 26, 2015, at 8:11 AM, sqwarqDev wrote: > > I built my app in Xcode 6.4 on 10.10.5. > > Runs without issue on Yosemite and Mavericks. However, when I boot into Lion > 10.7, I get an “unrecognized selector” error on the “removeItemAtPath” line. > Here’s the snippet" > > NSError *err;

Re: Auto Layout and XCode/IB Warnings

2015-08-26 Thread Conrad Shultz
> On Aug 26, 2015, at 10:10 AM, Dave wrote: > > Hi All, > > I’m getting these warning in a xib file: > > Draw Frame View > Expected: Height=436 > Actual: Height=48 > > Image View > Expected: y=464 > Actual: y=76 > > > And a few others of the same nature and I’m at a loss to know what to do

Re: Auto-Layout Again

2015-08-27 Thread Conrad Shultz
> On Aug 27, 2015, at 8:07 AM, Jerry Krinock wrote: > > In a hurry here, but, I know Auto Layout does not always play well with > scroll views. If you encounter a situation where Auto Layout is not playing well with NSScrollView (or, really, any view), please file a bug report at https://bug

Re: NSStackView - Gravity Question

2015-08-28 Thread Conrad Shultz
> On Aug 28, 2015, at 6:18 AM, Dave wrote: > > I’m looking at: > > https://developer.apple.com/library/mac/documentation/AppKit/Reference/NSStackView_Class/#//apple_ref/occ/clm/NSStackView/stackViewWithViews: > >

Re: Subclassing a Subclass of SBApplication

2015-09-03 Thread Conrad Shultz
Note that this is a category, not a class extension. -Conrad > On Jun 30, 2015, at 6:19 AM, Jean-Daniel Dupas wrote: > > Using class extension is probably a safe way to extends such classes. > > @interface SXPhotoshopApplication (MyExtension) > > - (void)myWrapper; > > @end > > >> Le 29 j

Re: NSView's in Separate NIB

2015-09-04 Thread Conrad Shultz
> On Sep 4, 2015, at 9:23 AM, Dave wrote: > > Hi, > > Is it still allowable (taking into consideration Auto Layout) to have a > separate NSView subclass with a NIB? > Yes. Auto Layout should be unrelated to this, though if you are composing your separate views together in code then you wil

Re: NSView's in Separate NIB

2015-09-04 Thread Conrad Shultz
> On Sep 4, 2015, at 10:30 AM, Dave wrote: > > The reason I ask is that for a while now when you create an NSView subclass > it no longer offers you the option to create a separate NIB file. I remember > a while back reading something saying that it was frowned upon. > You should be able to

Re: iOS 9 or Watch App

2015-09-21 Thread Conrad Shultz
> On Sep 21, 2015, at 6:20 AM, Michael David Crawford > wrote: > > however you may only have one version of the command line tools > installed in /usr/bin and the like. You might take a look at https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/xcode-select.1

Re: questions on WebView for Mac apps

2015-09-30 Thread Conrad Shultz
WKWebVew is the preferred API. If WKWebView is missing API that prevents you from adopting it (on either iOS or OS X) please file a bug at https://bugreport.apple.com . -Conrad ___ Cocoa-dev mailing list (Cocoa-dev@lists

Re: NSView - trouble setting next responder on 10.10 - works okay on 10.9

2015-10-02 Thread Conrad Shultz
> On Sep 30, 2015, at 9:15 AM, Jonathan Mitchell > wrote: > > In my app i manage the responder chain on 10.8 and 10.9 to insert the > NSViewController into the responder chain. > The view controllers are inserted just below the NSWindowController so that > designated view controllers can resp

Re: questions on WebView for Mac apps

2015-10-02 Thread Conrad Shultz
> On Sep 30, 2015, at 11:59 AM, Jens Alfke wrote: > > >> On Sep 30, 2015, at 10:43 AM, Conrad Shultz > <mailto:conrad_shu...@apple.com>> wrote: >> >> WKWebVew is the preferred API. >> >> If WKWebView is missing API that prevents you from ad

Re: Handling http:// URLs

2015-10-13 Thread Conrad Shultz
> On Oct 13, 2015, at 5:34 PM, Rick Mann wrote: > >> On Oct 13, 2015, at 17:29 , Stephen J. Butler > > wrote: >> >> I think you're talking about Seamless Linking/Universal Links. Introduced in >> iOS 9 >> >> https://developer.apple.com/videos/play/wwdc2015-509

Re: CGContextShowTextAtPoint

2015-10-14 Thread Conrad Shultz
> On Oct 14, 2015, at 11:41 AM, Raglan T. Tiger wrote: > > > >> On Oct 14, 2015, at 10:02 AM, Jens Alfke wrote: >> >> The view is probably using flipped coordinates. Look up flipped coordinates >> in the Cocoa view documentation to understand what they are and how to work >> around the pro

Re: debugging AutoLayout exception with no build errors

2015-11-05 Thread Conrad Shultz
> On Nov 5, 2015, at 6:50 AM, 2551 <2551p...@gmail.com> wrote: > >> or set a breakpoint on -[NSView(NSConstraintBasedLayout) >> engine:willBreakConstraint:dueToMutuallyExclusiveConstraints:]. > > Not sure I’m still following along. Are we talking symbolic breakpoint here? > I tried that, but

Re: Trigger "Back to..." from code?

2015-11-17 Thread Conrad Shultz
As always, if helpful API is missing, please file a bug at https://bugreport.apple.com and explain your use case. Thanks, Conrad > On Nov 16, 2015, at 6:41 PM, Eric Shepherd wrote: > > Bummer. I was writing a Workflow script to do stuff and just wanted it > to be able to return me back to wher

Re: Voiceover support

2015-11-17 Thread Conrad Shultz
One other thing you may find helpful is to test your app using Screen Curtain (https://developer.apple.com/library/ios/technotes/TestingAccessibilityOfiOSApps/TestAccessibilityonYourDevicewithVoiceOver/TestAccessibilityonYourDevicewithVoiceOver.html

Re: How to

2015-12-09 Thread Conrad Shultz
> On Dec 6, 2015, at 2:56 PM, Graham Cox wrote: > > >> On 7 Dec 2015, at 2:45 AM, Dave wrote: >> >> On the Mac what is the best control to use to do this? > > > Just override -mouseDown: in the view and call [NSApp > sendAction:toTarget:from:] > I’d recommend looking at NSClickGestureRec

Re: Any way to intercept the URL-opening mechanism on OS X?

2016-01-02 Thread Conrad Shultz
> On Dec 22, 2015, at 3:51 PM, Rick Mann wrote: > > You know how you can click links in email, and heck, to open them in Safari > (or whatever browser)? Is there any way to write an extension of some sort > that can intercept this and re-write the URL? I tried to write a filter in > Safari pr

Re: Any way to intercept the URL-opening mechanism on OS X?

2016-01-02 Thread Conrad Shultz
On Jan 2, 2016, at 15:04, Conrad Shultz <mailto:conrad_shu...@apple.com>> wrote: > >> >>> On Dec 22, 2015, at 3:51 PM, Rick Mann >> <mailto:rm...@latencyzero.com>> wrote: >>> >>> You know how you can click links in email, and heck

Re: NIB for Cocoa Standard Alert Sheet

2015-04-20 Thread Conrad Shultz
> On Apr 20, 2015, at 11:12 AM, Dave wrote: > > Hi All, > > Is the Cocoa Standard Alert Sheet available anywhere in a NIB or failing that > is there a list of the fields and their Frame Rectangles anywhere? > > I’m sure it’s there somewhere, I’ve been doing google searches but I can’t > thin

Re: EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x00000000bbadbeef crash on UIWebview

2015-06-22 Thread Conrad Shultz
From this backtrace it looks like you might be trying to perform UI operations someplace other than on the main queue, which would cause problems. I'd start by checking whether you have: -Any dispatches to a background queue that might need a dispatch_async to the main queue. -Any observer call

Re: How to enable local storage in WebView using Swift

2015-06-27 Thread Conrad Shultz
> On Jun 3, 2015, at 7:23 AM, Juanjo Conti wrote: > > Hi, I'm using WebView and I'd like to enable HTML5 local storage. > > I've read some questions on Stack Overflow where the suggestion is to do: > >WebPreferences *prefs = [webView preferences]; >[prefs _setLocalStorageDatabasePath:@

Re: Safe time to add accessory view to NSSavePanel in sandboxed app?

2015-07-15 Thread Conrad Shultz
> On Jul 15, 2015, at 3:53 PM, Graham Cox wrote: > > This works 99% of the time, but sometimes it just crashes. This seems to > occur when the app has just been activated after using a different app, and > this save panel is requested within a few seconds of the activation, though > that’s a

Re: Auto Layout and Resizable NSViews

2015-07-20 Thread Conrad Shultz
Or NSSplitViewController, if you can target 10.10+. > On Jul 20, 2015, at 1:50 PM, Gary L. Wade > wrote: > > Depending on your design, why not just use an NSSplitView to do all that for > you? > -- > Gary L. Wade (Sent from my iPhone) > http://www.garywade.com/ > __

Re: Tech update avoiding legacy code

2015-08-14 Thread Conrad Shultz
This thread appears to be about OS X, not iOS. In any event, a great reference that covers many of the technologies under discussion is the Objective-C Feature Availability Index, available at https://developer.apple.com/library/mac//releasenotes/ObjectiveC/ObjCAvailabilityIndex/index.html

Re: [Solved] Section header artifacts in popover

2011-08-02 Thread Conrad Shultz
ne.) -- Conrad Shultz www.synthetiqsolutions.com On Jul 30, 2011, at 1:12, Conrad Shultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi all, > > I have been attempting to debug a strange quirk I am getting when I use > a UISearchDisplayController in co

Re: Unnecessary Boolean Warning

2011-08-02 Thread Conrad Shultz
oted: "One programmer's appreciated warning is another programmer's annoying noise. If you think some warning is noise, turn it off. Please don't belittle those of us who are not perfect." Greg, a valuable list contributor from whom I think we all learn a great deal, is on you

Re: How to Identify if the device is used in iAD supported Regions

2011-08-04 Thread Conrad Shultz
sage in the ad delegate. Presumably this just won't get called in regions that don't support iAd. You could setup a timer to load from other ad networks if you don't receive an iAd within some predetermined period. (Sent from my iPad.) -- Conrad Shultz www.synthetiqsolutions

Re: How to Identify if the device is used in iAD supported Regions

2011-08-04 Thread Conrad Shultz
ldn't have to push out a new app. FWIW, given the absence of mention of iAd at WWDC this year and the publicized lack of enthusiasm among advertisers (at least in the US), I would not be surprised to see iAd revamped or even dropped. But this is purely speculative. (Sent from my iPhone.) -

Re: Zinnia on iPad

2011-08-07 Thread Conrad Shultz
I believe you posted this to xcode-users yesterday and got several useful responses. Can you elaborate on your specific challenges? (Sent from my iPhone.) -- Conrad Shultz www.synthetiqsolutions.com On Aug 6, 2011, at 13:00, Claudio Ceballos Paz wrote: > Hello, friends. > I'

Re: Decimation - NSBezierPath or something else?

2011-08-08 Thread Conrad Shultz
ave you found this to be the case? I have some code that plots about 7500 points in a scalable, scrollable NSView using NSBezierPath (without attempting any fancy optimization) and I see absolutely no delay at all during either the initial render or subsequent transformations. - -- Conrad S

Re: Frameworks (ConnectionKit)

2011-08-09 Thread Conrad Shultz
re encrypted image." - -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFOQWbHaOlrz5+0JdURAn4RAJ9oHZVCLmqwcv7nNShZggzNGtVDFQCfVF/e Rny+npzOo8j55OPj6Ql1

Re: Decimation - NSBezierPath or something else?

2011-08-09 Thread Conrad Shultz
n; I will have to spend some more time benchmarking this and optimizing later on. - -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFOQWpJaOlrz

Flipped horizontal NSRulerView?

2011-08-10 Thread Conrad Shultz
" simply led me back to the NSRulerView documentation, for which I think I have read all the pertinent portions. Thanks. - -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG

Re: Flipped horizontal NSRulerView?

2011-08-10 Thread Conrad Shultz
purposes. Yeah, that was actually the first thing I tried, but it unfortunately triggers an "invalid parameter" (don't recall exact wording) error. - -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (Darwin) Comment:

Re: Flipped horizontal NSRulerView?

2011-08-11 Thread Conrad Shultz
his is the first time I've dealt with NSRulerView so I don't know if there are other hidden benefits that I would forgo. - -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Com

Re: How can I prevent drag-and-drop initiation in an NSTextField

2011-08-16 Thread Conrad Shultz
; don't want to allow the movement of text. If that's your goal, why don't you just setEditable:NO ? - -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://

Re: How can I prevent drag-and-drop initiation in an NSTextField

2011-08-16 Thread Conrad Shultz
at the string needs to also be displayed elsewhere on the screen, etc. Would this work? Please correct me if I do not understand your objectives properly. - -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (Darwin) Comment: Using

Re: Options to defaults or commandline

2011-08-16 Thread Conrad Shultz
ully... *: I'm not one to talk here - I haven't yet done so. - -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFOSs4UaOlrz5+0JdURAvjWAJ9

Re: Problems with UIAlertView

2011-08-16 Thread Conrad Shultz
over, it will dismiss. I > read about the passthroughViews property. If I set that property to > nil, will this prevent the popover from being dismissed? Returning NO from the -popoverControllerShouldDismissPopover: delegate method should do the trick. - -- Conrad Shultz Synthetiq Soluti

Re: How can I prevent drag-and-drop initiation in an NSTextField

2011-08-17 Thread Conrad Shultz
rself into an uncomfortably small corner by - wait for it - "fighting the framework." *: To be very clear here, I am talking about OVERRIDING a method, not the intended use of categories which is to ADD a method. - -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com -BEGIN

Re: How can I prevent drag-and-drop initiation in an NSTextField

2011-08-17 Thread Conrad Shultz
t the category was purely for testing purposes and I wanted to make sure that others understood when and when not to use a category to solve a problem. I'm glad you found a solution that fits your needs and that will keep the clients happy. - -- Conrad Shultz Synthetiq Solutions www.synt

Re: Large over 100K pixel high ruler scroll view

2011-08-23 Thread Conrad Shultz
;t see how bindings come into this. I'm also unclear by what you mean by "setup wizards" - are you referring to Xcode templates, or...? - -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (Darwin) Comment: Using

Re: Confused with block completionHandler

2011-08-24 Thread Conrad Shultz
> code here } This is very similar to the above. I recommend http://developer.apple.com/library/ios/#featuredarticles/Short_Practical_Guide_Blocks/_index.html. - -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (Dar

NSTabView Sizing Question

2011-08-26 Thread Conrad Shultz
lution, as well as a rather vague sentence on cocoadev.com: "Of course, resizing the window would be helpful and if you really want to, make the tabview switch to a blank tab as the window is resizing to get the Sys Prefs effect." A search for NSTabView on the devforums reveals only six (unrela

Re: NSTabView Sizing Question

2011-08-26 Thread Conrad Shultz
more sense than what I had been doing... I even had the autoresizing masks set properly, but couldn't see the forest for the trees. Thanks for the helpful suggestion. I'll give it a shot, seems like it should work. - -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com

Re: UIBarButtonItem exclusive touch

2011-08-29 Thread Conrad Shultz
ith nested dispatch_async() calls)... (Sent from my iPhone.) -- Conrad Shultz www.synthetiqsolutions.com On Aug 29, 2011, at 19:34, Leon Qiao wrote: > Dear all, > > The UI I made is like the system app "Contact", there's an "add" bar button > on the navigat

Re: UIBarButtonItem exclusive touch

2011-08-30 Thread Conrad Shultz
tered delayed performs before, but if not you will want to take a look at NSObject's – performSelector:withObject:afterDelay: and + cancelPreviousPerformRequestsWithTarget:selector:object: - -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com -BEGIN PGP SIGNATURE- Versi

Re: Size of a file on disk

2011-08-31 Thread Conrad Shultz
NSFileManager's attributesOfItemAtPath:error: (Sent from my iPhone.) -- Conrad Shultz www.synthetiqsolutions.com On Aug 31, 2011, at 12:51, Jon Sigman wrote: > How does one determine the size of a file on disk using Cocoa? > I've looked at NSFileManager but it doesn

Re: Linking an NSWindow in IB

2011-08-31 Thread Conrad Shultz
order front" message from the app delegate. Putting an outlet to your window _inside the window_ is counterproductive. (I assume also that you meant for MyWindow to be a subclass of NSWindow, not NSObject.) (Sent from my iPhone.) -- Conrad Shultz On Aug 31, 2011, at 19:54, Guy Halfo

Re: test on device using company registration

2011-09-07 Thread Conrad Shultz
n/Xcode/Conceptual/iphone_development/128-Managing_Devices_and_Digital_Identities/devices_and_identities.html) may be helpful as well. You should be able to get more information from the dev forums or, maybe, the Xcode-users mailing list (though this is pretty far afield there as well).

Re: NSScanner to find multiple occurrences of a prefix?

2011-09-12 Thread Conrad Shultz
cally run slowly in relative terms, so if you are doing a lot of these conversions you would probably want to profile performance too. - -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (Darwin) Comment: Usin

Re: Responder-Chain question.

2011-09-13 Thread Conrad Shultz
ablishes the links at that level, but I don't know. The reason I'm unsure is that I haven't had cause to do so - if you want a custom controller for each window, what's wrong with using their NSWindowControllers, which certainly are handled properly by AppKit and which are desig

Re: Task dispatching

2011-09-13 Thread Conrad Shultz
ad process? Regardless, if you are working with matrices of this size, you (the OP, that is) should definitely scrutinize the Accelerate framework to determine if there are hardware-optimized functions that would improve performance (and maybe simplify your code). - -- Conrad Shultz Synthetiq

Re: SDK 10.5 on XCode 4.1

2011-09-15 Thread Conrad Shultz
-in-os-x But yes, for your purposes you want a symlink. - -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFOckB9aOlrz5+0JdURAsYTAJ0R487HqyHVt7kuIl/S

Re: Timeout back to login screen

2011-09-15 Thread Conrad Shultz
t notification that the phone is going to be locked (provided the device is using content protection and a passcode). It's a bit of a misappropriation of the notification, but other options (such as -applicationWillResignActive:) are going to have side effects because they can be triggered

Re: Gestalt

2011-09-21 Thread Conrad Shultz
re getting the version number is what you really want. - -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFOejulaOlrz5+0JdURAqAmA

Re: Gestalt

2011-09-21 Thread Conrad Shultz
don't use OS version numbers for such tasks.) - -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFOelKHaOlrz5+0JdURArG5AJ9KBV8wHE

Re: Gestalt

2011-09-21 Thread Conrad Shultz
hat I hadn't really considered, and I concede that it is a situation where checking the OS version (or, at least, NSAppKitVersionNumber) may be the best solution. - -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7

Re: Gestalt

2011-09-22 Thread Conrad Shultz
isn't going to get around this sort of issue). Good to know about QLPreviewPanel, though. An app I'm casually working on will probably eventually make use of QuickLook, so Kyle's response may well save me some headaches. Thanks to everyone who replied for the enlight

Re: Telling apart different save panels

2011-09-22 Thread Conrad Shultz
tead of co-opting the title, one option is to store a panel identifier as an associated object on the panel then look it up in your delegate with objc_getAssociatedObject(). - -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (Darwin

Re: searching for strings containing "

2011-09-26 Thread Conrad Shultz
tring isEqualToString: @"name= "foo" Type="bar"") > > Gives an error because there are too many " symbols. I looked > into replacing the " with ' by using > stringByReplacingOccurrencesOfString:withString: , but that gives > the same prob

Re: creating multiple NSTimers

2011-09-29 Thread Conrad Shultz
eDictionary keyed by IP be a good choice? Then you can just add/remove timers as needed and not have to worry about shifting an array. If you are trying to get the timers ordered by when they will fire, do not overlook, e.g., NSDictionary's –keysSortedByValueUsingComparator:. - -- C

Re: creating multiple NSTimers

2011-09-29 Thread Conrad Shultz
pproach described by John and Jamie would presumably also work, but I would consider the dictionary approach more straightforward. - -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enig

Re: delegate of an NWindowController's window

2011-09-29 Thread Conrad Shultz
entially, contextInfo if your design requires it) can probably get you what you need. - -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFOhRViaOlrz5+0

Re: creating multiple NSTimers

2011-09-30 Thread Conrad Shultz
s CPU and power efficient than using timers anyway. Am I missing something conceptually here? Why are people pushing for the single timer model? Is there some hidden complexity in a multi-timer approach that I'm not seeing? - -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.co

Re: creating multiple NSTimers

2011-09-30 Thread Conrad Shultz
omething in my tired state, but it sure does look like a simple loop. (There's a lot of magic happening in __CFRunLoopDoTimer, but it still gets called during each loop iteration.) Huh... color me surprised. Thanks for the response (and putting up with me). - -- Conrad Shultz

Re: need to run a ln command for every boot

2011-10-05 Thread Conrad Shultz
y user-configurable method) or "launchd" (OS X's full-featured Swiss army knife of automated execution, roughly a replacement for the System V init/cron scripts and more). - -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com -BEGIN PGP SIGNATURE- Version: Gn

Re: UIWebView not updating picker when picking dynamically populated select items

2011-10-05 Thread Conrad Shultz
cond failing to honor the change. If you through in an alert() or equivalent into your "onchange" code it should be pretty easy to distinguish. If the problem is failing to honor the change, you might be SOL (or at least would have to find some more convoluted approach that does trig

Re: Writing a simple vector graphics editor - how to implement?

2011-10-05 Thread Conrad Shultz
s a nice sample program putting the pieces together. Apple's Sketch is probably useful too. - -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFO

Re: UIWebView not updating picker when picking dynamically populated select items

2011-10-05 Thread Conrad Shultz
cus. Are you doing this by just calling focus() on the element? Anyhow, this is pretty clearly a WebKit or JavaScript glitch, so this list is not well suited to the problem. I'd be happy to continue a conversation off-list if you want to bounce ideas back and forth. - -- Conrad Shultz Sy

Re: NSTableView - Drag/Drop not working

2011-10-09 Thread Conrad Shultz
ropriate), typically returning YES if it's a simple row reordering. Good luck - feel free to post a link to your sample project if you can't get it to work. - -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com -BEGIN PGP SIGNATURE- Version: GnuPG/MacG

Re: How to get info about an iOS device (UDID, etc)?

2011-10-10 Thread Conrad Shultz
APIs, but I’m not sure what > other list would be more relevant. Check out the UIDevice class. (You probably want to use the MAC address instead of the UDID...) - -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com -BEGIN PGP SIGNATURE- Version: GnuPG v1

Re: Get my NSDocument-based application out from "Open With" menu?

2011-10-20 Thread Conrad Shultz
Document > fileNameExtensionForType:saveOperation:] for save - if not, that's > a starting point.___ May I also ask why you would want to do this? I would generally expect that if an application lets me open and save a format via the menus that I would also be able to open it thr

Re: Draw a non-antialiased image (NSImage)

2011-10-28 Thread Conrad Shultz
arious artifacts that may be introduced in other methods but will probably give superior performance (and make for more readable code). - -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (Darwin) Comm

Re: Draw a non-antialiased image (NSImage)

2011-10-28 Thread Conrad Shultz
e four lines of code. Unless you are working with an artist or designer who is not in a position to edit code, you can probably get better results (as well as resolution independence) by drawing such an element in code. - -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com -BEG

Re: Problems with runModalForWindow, looking for alternatives

2011-11-01 Thread Conrad Shultz
return [NSString stringWithCString:stringFromCPlusPlusMethod encoding:someEncoding]; - -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFOsEmlaOlrz5+0JdURAv

Re: How to detect clicks outside of modal window?

2011-11-02 Thread Conrad Shultz
using a panel if possible, just as Scott recommended. -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact t

Re: How to detect clicks outside of modal window?

2011-11-03 Thread Conrad Shultz
code (or put whatever you need to do, such as finalizing an update to your model, directly in the delegate method implementation). (Sent from my iPhone.) -- Conrad Shultz On Nov 3, 2011, at 8:58, Vojtěch Meluzín wrote: > Thanks. Ok, let's say I'm ok with "not making it mod

Re: Read Keyboard

2011-11-03 Thread Conrad Shultz
I assume you mean that keyDown: is not called if _only_ a modifier key is pressed. If it's not called for any key press then you have bigger problems. To answer your question, the method you are looking for is NSResponder's -flagsChanged:. (Sent from my iPad.) -- Conrad Shultz

Re: Storyboard scene and UIViewController

2011-11-03 Thread Conrad Shultz
ou are aware of UIViewController's -initWithNibName:bundle: method! -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the li

Re: UISplitViewController some of the time

2011-11-03 Thread Conrad Shultz
ally presented view controller to communicate with its presenter, it should probably use delegation or a similar form of direct messaging. -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.ap

Re: UISplitViewController some of the time

2011-11-03 Thread Conrad Shultz
I could maybe spend some time writing a test app to familiarize myself with storyboarding, we could get to the bottom of this. But I can't believe there is no one on the list who has experience with this new technology - please chime in! -- Conrad Shultz Synthetiq Solutions www.synthetiqsolu

Re: UITapGestureRecognizer and state/action w/rt numberOfTapsRequired

2011-11-08 Thread Conrad Shultz
tation/EventHandling/Conceptual/EventHandlingiPhoneOS/GestureRecognizers/GestureRecognizers.html). -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mode

Re: UIGestureRecognizer

2011-11-08 Thread Conrad Shultz
one has a better suggestion, you will need to create a custom UIGestureRecognizer subclass. By careful design, you can probably use UIPanGestureRecognizer and UILongPressGestureRecognizer internally to minimize the amount of touch-handling code you need to write. -- Conrad Shultz Synt

Re: Allocating too much memory kills my App rather than returning NULL

2011-11-08 Thread Conrad Shultz
ICT) will keep Apple-supplied background tasks running as well (e.g. iPod/music app). Under low memory conditions, it will terminate suspended apps first but will eventually kill your app too, even if it's running in the foreground. You are expected to allocate as LITTLE memory as possible, make

Re: How to switch GDB disassembly from Thumb to ARM?

2011-11-09 Thread Conrad Shultz
This doesn't have anything to do with Cocoa. You might have better luck taking it up on the Xcode-users list. (Sent from my iPad.) -- Conrad Shultz On Nov 9, 2011, at 9:39, Don Quixote de la Mancha wrote: > My iOS App is build with the Apple LLVM 3.0 compiler in Thumb mode. >

Re: 2 itunesconnect questions

2011-11-11 Thread Conrad Shultz
Quick note: the 3GS and onward use ARMv7. You would not be limited to the 4S. (Sent from my iPhone.) -- Conrad Shultz On Nov 11, 2011, at 12:42, Development wrote: > I attempted to submit an app last night and it failed validation because it's > universal but did not include armv

Re: 2 itunesconnect questions

2011-11-11 Thread Conrad Shultz
to universal" option, or configure the project settings manually? Did you add "armv7" to the UIRequiredDeviceCapabilities in Info.plist? (Cf. http://developer.apple.com/library/ios/#documentation/general/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html) --

Re: 2 itunesconnect questions

2011-11-11 Thread Conrad Shultz
On 11/11/11 1:21 PM, Glenn L. Austin wrote: > Set your iOS Deployment Target to iOS 4.3 and build ARMv7. I don't think the OP said that the app should be version restricted. Why target 4.3? -- Conrad Shultz Synthetiq Solutions www.synthetiqsolut

Re: 2 itunesconnect questions

2011-11-11 Thread Conrad Shultz
See comments below. (Sent from my iPhone.) -- Conrad Shultz On Nov 11, 2011, at 13:39, Development wrote: > That's the problem I ran in to. I wanted to maintain some degree of backward > compatibility 4.2 OK. But architecture and target SDK can be throttled independently.

Re: 2 itunesconnect questions

2011-11-11 Thread Conrad Shultz
stulated above) by devoting your time and energy to anything else, you'd come out ahead. Do you think that is not possible? Do you disagree with the analysis? (I'm not asking rhetorically; I have based my own decisions on such an analysis and would welcome criticism or clarification.)

Re: 2 itunesconnect questions

2011-11-11 Thread Conrad Shultz
hat we shouldn't try to convert projects manually. If this is what you attempted then it seems possible that there are other magic flags that need configuration. Also, since this topic now seems to be well within the tools domain, you might get good feedback on the xcode-users list as well. -- Co

Re: How to determine if there is an internet connection available?

2011-11-11 Thread Conrad Shultz
s issue (http://developer.apple.com/library/mac/#documentation/Networking/Conceptual/CFNetwork/CFStreamTasks/CFStreamTasks.html#//apple_ref/doc/uid/TP30001132-CH6-SW19). -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com ___ Cocoa-dev maili

Re: Cannot D&D from an NSTableView

2011-11-14 Thread Conrad Shultz
happens if you inherit from NSActionCell? -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderato

Re: 2 itunesconnect questions

2011-11-14 Thread Conrad Shultz
On 11/11/11 9:37 PM, Glenn L. Austin wrote: > On Nov 11, 2011, at 1:26 PM, Conrad Shultz wrote: > >> On 11/11/11 1:21 PM, Glenn L. Austin wrote: >>> Set your iOS Deployment Target to iOS 4.3 and build ARMv7. >> >> I don't think the OP said that the app shoul

Re: 2 itunesconnect questions

2011-11-14 Thread Conrad Shultz
in all that time. After all, > those apple people could find a bug in 'hello world.' Between ARC and the static analyzer, a great many crashers can nowadays be eliminated. As for the task of finding good, reliable beta testers... if you figure out a secret, please don't keep it to your

Re: Cannot D&D from an NSTableView

2011-11-14 Thread Conrad Shultz
eArea. What happens in your custom cell class if you return just NSCellHitContentArea? (I'm assuming from your original message that you had been using the default hit test implementation.) (Sent from my iPhone.) -- Conrad Shultz On Nov 14, 2011, at 17:05, Koen van der Drift wrote: &

Re: About iVars declaration and property

2011-11-16 Thread Conrad Shultz
willChangeValueForKey:, etc. I do this even if I currently don't observe a property in order to foster forward compatibility. (Sent from my iPhone.) -- Conrad Shultz On Nov 16, 2011, at 2:19, Quincey Morris wrote: > On Nov 16, 2011, at 01:00 , Don Quixote de la Mancha wrote: > >>

  1   2   3   4   >