Re: Stupid objective-c question

2016-09-26 Thread Fritz Anderson
On 23 Sep 2016, at 9:49 PM, Uli Kusterer wrote: > > Are you sure? I only learned Cocoa when it came to OS X, but my impression > was that, while KVC came from NeXT, KVO arrived with bindings … that would > have been 10.3 or 10.4-ish? As I remember, when KVO was

Re: Launching iOS 10 supported build using Xcode 7

2016-09-09 Thread Fritz Anderson
On 9 Sep 2016, at 11:25 AM, Devarshi Kulshreshtha wrote: > > We have a thoroughly tested build on iOS9 using Xcode 7 swift 2.2, we are > planning to release it on 16th of this month, since iOS10 will be released > on 13th wanted to know that can we still release

Re: C callbacks with NSNotificationCenter?

2016-09-07 Thread Fritz Anderson
“dangerwillrobinsondanger” correctly points to Core Foundation. I’m embarrassed to have forgotten — it should be very helpful to you, assuming it mixes with AVFoundation. > On 7 Sep 2016, at 11:33 AM, じょいすじょん > wrote: > > Have you considered Core

Re: C callbacks with NSNotificationCenter?

2016-09-07 Thread Fritz Anderson
> On 7 Sep 2016, at 11:09 AM, Andreas Falkenhahn wrote: > > As a C programmer I'm trying to avoid Objective C whenever and wherever > possible. > The good thing is that I can do most interaction with Cocoa from normal C > functions. > I only had to write very few

Re: UIStackView: Variable Spacing

2016-07-07 Thread Fritz Anderson
Confirming that your concern is now Auto Layout overhead? --- Long, long ago, when there were no iPads or Auto Layout (2009?), the scrolling-performance session at WWDC said if your cells had nontrivial subview trees, and the table was stuttering, bite the bullet and start aggregating subview

Re: NSAlert and threading

2016-05-23 Thread Fritz Anderson
On 23 May 2016, at 4:14 PM, Tom Doan wrote: > > I have an menu operation which, before it fully executes, pops up > an NSAlert asking a Yes/No question ("Selection Only(Y/N)?") then, > depending upon the answer will either apply to the whole list or just > the selection.

Re: How to stop an Application being Activated

2016-04-07 Thread Fritz Anderson
On 7 Apr 2016, at 11:35 AM, Dave wrote: > > Is it possible to stop an application being activated, I mean, if an attempt > is made to make an application active it is somehow intercepted by another > application? I gather you hope to write the second application — the

Re: Proper target for table cell view buttons

2016-04-07 Thread Fritz Anderson
On 7 Apr 2016, at 11:04 AM, David Catmull wrote: > > I have some buttons in my table cell views, and I wanted to set my view > controller as their target, but Xcode warns that such objects “may only be > connected to the table view’s delegate”. The things is, it works

Re: question about last used date

2016-03-14 Thread Fritz Anderson
> On 14 Mar 2016, at 10:39 AM, Jens Alfke wrote: > > Unix filesystems do keep a last-accessed date for files, but it looks like > NSFileManager doesn’t expose an attribute for it. You can call stat() and get > the st_atimespec field of the result. NSURL *Resource* methods

Re: 32-bit / 64-bit roadmap

2016-01-21 Thread Fritz Anderson
On 21 Jan 2016, at 10:45 AM, Aandi Inston wrote: > > So far as I can see, all recent Mac OS systems are 64-bit on 64-bit > hardware and can run an app shipped in 64-bit only. And 32-bit continues to > run fine. > > But what about the future? Perhaps we can only speculate about

NSXMLDocument & friends coalesce runs of spaces to one

2015-11-19 Thread Fritz Anderson
I need to calculate offsets into a Word document XML (.docx) archive using two methods: Counting characters in NSAttributedString’s interpretation, and the text nodes (etc.) of the document XML itself. The offsets have to match. They don’t, mostly because of the way the parser treats runs of

Re: AVMetadataItem key

2015-10-05 Thread Fritz Anderson
This is embarrassing… On 4 Oct 2015, at 5:39 PM, Fritz Anderson <fri...@manoverboard.org> wrote: > > func OSTypeFor(code: UInt32, >encoding: UInt = NSMacOSRomanStringEncoding) >throws -> String > { >let codePtr = UnsafeMutablePointer.alloc(1) >

Re: AVMetadataItem key

2015-10-04 Thread Fritz Anderson
On Oct 1, 2015, at 3:59 PM, Jan E. Schotsman wrote: > > Sorry for this stupid question but I just don't know how to do this. > > I have an AVMetaDataItem with > key = protocol? Int32(1851878757) > as shown by the debugger > > How can can extract

Re: Swift generics, circular type declarations, and segfaults, oh my!

2015-09-03 Thread Fritz Anderson
On 3 Sep 2015, at 8:55 AM, has wrote: > Stuck and looking for ideas here. I need to define a base class whose methods > vends instances of its subclasses (thus enabling chained method calls; your > basic query builder). I’m assuming Swift 1.2. The following works in

Re: Referring to self in property initializer

2015-08-17 Thread Fritz Anderson
On 14 Aug 2015, at 8:47 PM, Rick Mann rm...@latencyzero.com wrote: So, adding lazy lets it work with the closure (makes self available to the closure): lazy varbackgroundSession : NSURLSession= { ... I really wish you could do lazy let foo = I don't

Re: How to implement NSSplitViewDelegate methods in an NSSplitViewController subclass

2015-08-07 Thread Fritz Anderson
Speculation: This may be like the -window property of NSWindowController. Accessing it is the recommended way to force the controller to instantiate the window, even if you don’t care about the result. In this case, _you_ may not care what super’s NSSplitViewDelegate methods do, but

Re: NSManagedObject, NSString property retain vs copy

2015-07-30 Thread Fritz Anderson
On 30 Jul 2015, at 11:03 AM, Trygve Inda cocoa...@xericdesign.com wrote: It seems Apple is using retain rather than copy for NSString properties in an NSManagedObject subclass. I was always under the impression that copy should be used for NSString, so why the retain?? For an immutable

Re: Unable to connect IBOutlet in Swift Xcode 7b2

2015-07-14 Thread Fritz Anderson
[The thread is a week old, so it may have gone stale…] On 7 Jul 2015, at 1:58 AM, Rick Mann rm...@latencyzero.com wrote: On Jul 6, 2015, at 23:22 , Kyle Sluder k...@ksluder.com wrote: On Mon, Jul 6, 2015, at 07:57 PM, Rick Mann wrote: On Jul 6, 2015, at 17:54 , Charles Srstka

Re: Scary Stuff!

2015-06-18 Thread Fritz Anderson
On Jun 18, 2015, at 8:33 AM, Fritz Anderson fri...@manoverboard.org wrote: On Jun 17, 2015, at 4:46 PM, Britt Durbrow bdurb...@rattlesnakehillsoftworks.com wrote: WHAT?!?! No! You gotta use ROT13! ;-P One pass? Reckless. I use eight. Sent to the list in error; I apologize

Re: Scary Stuff!

2015-06-18 Thread Fritz Anderson
On Jun 17, 2015, at 4:46 PM, Britt Durbrow bdurb...@rattlesnakehillsoftworks.com wrote: WHAT?!?! No! You gotta use ROT13! ;-P One pass? Reckless. I use eight. — F ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: Disabling auto-synthesis of property accessors.

2015-05-26 Thread Fritz Anderson
On 22 May 2015, at 7:49 AM, Alex Zavatone z...@mac.com wrote: @property (nonatomic, strong) NSString *thing; Another chore in porting this code: The retention attribute should be copy, not strong. If you needed to track changes in the string, you'd use strong, but NSStrings don’t mutate;

Re: Disabling auto-synthesis of property accessors.

2015-05-21 Thread Fritz Anderson
On 21 May 2015, at 12:27 PM, Kyle Sluder k...@ksluder.com wrote: On Thu, May 21, 2015, at 12:11 PM, Alex Zavatone wrote: Jens mentioned that it was possible to turn off the auto-synthesis of properties in the build options of the target. This would be quite useful to help me iron out items

Re: Proper way to perform a task in the future on iOS 7 and 8

2015-05-05 Thread Fritz Anderson
On 4 May 2015, at 1:29 PM, Alex Zavatone z...@mac.com wrote: Since the app is already receiving location updates in the background, does it make sense to check if the current time is than the expiry timestamp within a location manager update? It makes so much sense to me that I don’t know

Re: Bindings across view controllers in OS X storyboards

2015-05-01 Thread Fritz Anderson
On 28 Apr 2015, at 6:54 PM, Rick Mann rm...@latencyzero.com wrote: I have a window made up of a couple of NSSplitViewControllers and custom view controllers. It's mostly a master-detail type of thing, where the selected item in the first split sets up the second, and a selected item there

Re: Spinning the busy indicator

2015-05-01 Thread Fritz Anderson
On 1 May 2015, at 12:53 AM, Graham Cox graham@bigpond.com wrote: So, the docs say (ha! here we go again…) that the default QoS is NSOperationQualityOfServiceBackground. This appears to be the LOWEST QoS constant. However, it also states that it is only used if the NSOperation itself

Re: Submitting App Localization Issue...

2015-04-22 Thread Fritz Anderson
It would be helpful to know what the unhelpful message was, and at what stage of the process it came to you. Also, what exactly are you doing for localization? — F On Apr 21, 2015, at 5:32 PM, Peters, Brandon bap...@my.fsu.edu wrote: I am getting an error in iTunes Connect for my App

Re: Why is NSString.UTF8String unavailable in Swift?

2015-03-23 Thread Fritz Anderson
On 21 Mar 2015, at 11:10 PM, Jens Alfke j...@mooseyard.com wrote: On Mar 21, 2015, at 8:43 PM, Charles Srstka cocoa...@charlessoft.com wrote: If you convert between String and NSString a lot, it’ll have performance implications (which is why bridging to NSString just to get -UTF8String

Re: NSButton (radio button) not calling action when overlapped by invisible NSButton?

2015-03-13 Thread Fritz Anderson
On 10 Mar 2015, at 5:01 PM, Aandi Inston aa...@quite.com wrote: The dialogs are frequently very complex, with areas showing different groups of controls according to context. Individual controls are shown/hidden by the higher level code to make this work. Radio buttons are naturally

Force a find in an NSTextView

2015-03-02 Thread Fritz Anderson
Target OS X 10.10. How does a view controller force an NSTextView to perform a search if it doesn’t own the text view? My application is a debugging tool to break an attributed string into style runs and display the runs in a table. I’d like to double-click a row in the table, and select

Re: Instantiate NSString from NSURL in Swift

2015-02-23 Thread Fritz Anderson
On 23 Feb 2015, at 8:18 AM, Juanjo Conti jjco...@carouselapps.com wrote: I'm translating some code from Objective-C to Swift and in the middle of that, i found this problem. theUrl is an instance of NSURL theUrl.host?.lowercaseString compiles ok. But NSString(string:

Re: Datatypes still not recognized after adding bridging header...

2015-02-20 Thread Fritz Anderson
On 19 Feb 2015, at 9:59 PM, Peters, Brandon bap...@my.fsu.edu wrote: I added a bridging header so that I could use the FMDB Objective-C code in Swift. However, the compiler still says it cannot recognize the datatype. Under Swift Compiler - Code Generation I added the bridging header there.

Re: Convert to NSString from

2015-02-09 Thread Fritz Anderson
On 6 Feb 2015, at 12:04 PM, Jens Alfke j...@mooseyard.com wrote: No one's used MacRoman encoding since the OS X transition, except for a few slow-moving legacy codebases. … and some Adobe PDF embedded fonts. — F ___ Cocoa-dev mailing

Re: iOS 6.x vs iOS 8.x layout

2015-01-27 Thread Fritz Anderson
You guess correctly. It's a very large subject, and a mailing list is no place for a tutorial, but here's a direction: Do not learn auto layout as if you has a gun to your head. Do not rush. Do not poke constraints in one-by-one until they seem to be working; it'll take hours to dig yourself

Re: Is the button group in Safari a general widget ?

2015-01-23 Thread Fritz Anderson
On 23 Jan 2015, at 10:20 AM, Aaron Lewis the.warl0ck.1...@gmail.com wrote: I've seen a lot of apps like Safari. 5 buttons in the bottom Is that a common widget? I couldn't find it on google (Notes ~ “widget” doesn’t have the same meaning in iOS/OS X frameworks that it does on other

Re: setApplicationIconImage:

2015-01-23 Thread Fritz Anderson
On 23 Jan 2015, at 10:07 AM, Steve Mills sjmi...@mac.com wrote: -setIcon:forFile:options: still sounds like your best bet, because it will make a lasting change. Although it's too bad that Apple didn't allow this method to take an .icns file as well as an image. That would've made it the

Re: URLByResolvingBookmarkData not case sensitive

2015-01-05 Thread Fritz Anderson
On 5 Jan 2015, at 10:11 AM, Trygve Inda cocoa...@xericdesign.com wrote: I am using URLByResolvingBookmarkData . If I make a Bookmark to a file: /Volumes/Macintosh HD/Documents/MyFile.txt and later resolve it with URLByResolvingBookmarkData, I get the original path as expected.

Re: Issues with applications running on background (Alarm Application)

2014-12-17 Thread Fritz Anderson
On Dec 16, 2014, at 9:55 PM, Claudio Maximiliano Edison Bastos Iorio selecter...@gmail.com wrote: soundName property is OK, and allows to use any embedded sound. But there’s no way to load any custom view dispatched right from the LocalNotification, at least no with a previous user

Re: WTF is happening?

2014-12-15 Thread Fritz Anderson
I can be dense. Do I understand correctly that - You have an application that ideally should run continually. - It accepts plugins that provide one or more classes. - Those classes must at least observe a protocol; otherwise there would be no sensible way to use them. - They must have unique

Re: Swift Interface vs Implementation

2014-11-22 Thread Fritz Anderson
On Nov 22, 2014, at 1:27 AM, Richard Charles rcharles...@gmail.com wrote: Perhaps it is just me, but it is not uncommon for my source file to have many more methods than what is in my header. So for me it is not the replicated code in the header file that is a negative but rather it is being

Re: NSPersistentDocument, Export (Save As) and wal/shm

2014-11-15 Thread Fritz Anderson
On Nov 14, 2014, at 8:02 PM, Richard Charles rcharles...@gmail.com wrote: I just checked my OS X application (Xcode 6.1, Objective-C source, 10.10 SDK, running on 10.9.5). When doing a save as the new document also appears on disk with external journaling files (shm and wal). That is nasty,

NSPersistentDocument, Export (Save As) and wal/shm

2014-11-14 Thread Fritz Anderson
OS X application, Yosemite (host and target), Xcode 6.1, all-Swift. If you duplicate (save-as) an existing document, the new document appears on disk with external journaling files (SHM, WAL). It is impossible to state how undesirable this is without descending into sarcasm. The solutions

Re: updating NSTextField before spinner animates

2014-11-12 Thread Fritz Anderson
On 12 Nov 2014, at 2:58 AM, sqwarqDev sqwarq...@icloud.com wrote: Thanks for this Fritz. I think I get it. I need to get a clearer idea of how the run loop works. This isn't the first time I've been confused about why a line doesn't appear to return the result I expect before the next line

Re: updating NSTextField before spinner animates

2014-11-11 Thread Fritz Anderson
On 11 Nov 2014, at 4:15 AM, sqwarqDev sqwarq...@icloud.com wrote: I have an NSTextView, whose string I want to update while I wait for another method to complete. Since this method is going to take around 10-30 seconds, I'm displaying a spinner progress indicator. However, I want the

Re: Weak linking

2014-11-07 Thread Fritz Anderson
On Nov 7, 2014, at 5:54 AM, Satyanarayana Chebrolu satyanaraya...@ivycomptech.com wrote (slightly more appropriate to xcode-users): The app is getting crashed when we launch it on 10.5 and 10.6 machines saying that “dyld: Symbol not found: _OBJC_CLASS_$_NSTableCellView”. Understand that

Re: Can an use introspection to determine if its a production app from the App Store?

2014-10-31 Thread Fritz Anderson
On 31 Oct 2014, at 6:40 AM, Charles Jenkins cejw...@gmail.com wrote: My day job is programming in C# for Windows computers. I was really excited when Swift came out because it’s so similar to other languages I know well and use and admire. I’ll take this as the root theme of your message.

Re: Closing window on Yosemite crashes (isFlipped)

2014-10-30 Thread Fritz Anderson
I haven’t encountered this myself. This is stream-of-consciousness, adding the presence of convertRect:toView: in the trace as the immediate caller… … The classic cause of a message arriving at the wrong object is that the expected object had been deallocated and its address recycled for the

Re: NSComboBox in the tab ring

2014-10-29 Thread Fritz Anderson
On 18 Oct 2014, at 11:14 PM, Luther Baker lutherba...@gmail.com wrote: Is it possible to keep an NSComboBox in the tabbing ring if I set its Behavior to Selectable. Tabbing reaches the control if the textfield is editable but I don't want to allow the user to type randomly into the text

Re: Mac containment segues, and prepareForSegue

2014-10-28 Thread Fritz Anderson
.) On 28 Oct 2014, at 2:47 AM, Roland King r...@rols.org wrote: On 28 Oct 2014, at 11:40 am, Fritz Anderson fri...@manoverboard.org wrote: I'm glad of the correction. Yes, I am speaking exactly about the relationship link between the window in a window controller scene and the view

Re: Expected identifier or '(' and other errors occur after copying working code to a second machine

2014-10-28 Thread Fritz Anderson
A shot in the dark… What are the line endings of the files (LF [UNIX/Mac], CR [legacy Mac], CRLF [Windows/Internet protocols]), and how are they set in the Text Editing panels of the Preferences window in the respective machines? Inconsistent line endings have confused Xcode in the past,

Mac containment segues, and prepareForSegue

2014-10-27 Thread Fritz Anderson
This is Yosemite, in Swift under Xcode 6.1. The summary: I don’t understand NSStoryboard containment relationships. I’ve never received a prepareForSegue(_, sender:), and without it, I can’t figure out how to propagate data from a document into its views. This is completely elementary. I can’t

Re: Mac containment segues, and prepareForSegue

2014-10-27 Thread Fritz Anderson
I'm glad of the correction. Yes, I am speaking exactly about the relationship link between the window in a window controller scene and the view in the view controller as provided in the template's Main.storyboard. I think it absurd that there is no obvious way for a document class that loads

Re: Mac containment segues, and prepareForSegue

2014-10-27 Thread Fritz Anderson
... of the _view_ controller. ― F On Oct 27, 2014, at 10:40 PM, Fritz Anderson fri...@manoverboard.org wrote: the contents of the vote controller ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Bad EXC_BAD_INSTRUCTION on drawRect call in Swift

2014-08-24 Thread Fritz Anderson
[Usual disclaimer about incomplete information.] On Aug 22, 2014, at 11:25 PM, Peters, Brandon bap...@my.fsu.edu wrote: I am getting this error: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode 0x0) over this line of code: if self.contentView!.frame.size.width photo.size.width {

Re: What is the modern Cocoa way to send an Apple Event to yourself?

2014-08-22 Thread Fritz Anderson
On 22 Aug 2014, at 10:40 AM, Kyle Sluder k...@ksluder.com wrote: This is a very strange idea. Cocoa applications do not do this; they just call straight into NSDocumentController. Even if they want to be recordable? — F ___ Cocoa-dev

Re: True Type Fonts

2014-08-10 Thread Fritz Anderson
On Aug 9, 2014, at 10:11 PM, Raglan T. Tiger r...@crusaderrabbit.net wrote: I will find out about the licensing issue, but we are not changing or making a derivative. Just to be clear: Preparing a derivative font is _one_ way to breach the license, but not the only, or even the primary, way.

Re: NSAlert NSOpenPanel on a background thread

2014-05-22 Thread Fritz Anderson
On 22 May 2014, at 10:54 AM, edward taffel etaf...@me.com wrote: i find no mention of thread safety in the NSOpenPanel doc, but the doc mentions ‘Open panels are drawn in a separate process by the powerbox’: perhaps this is the reason. This is one of those rules so universal in Apple APIs

Re: How to check if file exists?

2014-05-10 Thread Fritz Anderson
On May 10, 2014, at 2:06 PM, William Squires wsqui...@satx.rr.com wrote: If I have an NSString that contains a filename (and possibly a path, as typed on the command-line), how can I check to see if the specified file actually exists? [ code fragment that collects a string representing a

Re: Creating selector for nonexistent method

2014-05-06 Thread Fritz Anderson
On 29 Apr 2014, at 9:29 PM, Charles Srstka cocoa...@charlessoft.com wrote: int main (__unused int argc, __unused const char **argv) { @autoreleasepool { NSArray *array = [NSArray new]; #pragma clang diagnostic push #pragma clang diagnostic ignored -Wselector array = [array

Re: cocoapods: Problem with loading nib for a NSWindowController

2014-04-18 Thread Fritz Anderson
To be less Hermetic… case-sensitivity has been an option in HFS+ installation for many, many years. I think you’d be ill-advised to pick it, as I am confident that there is a large codebase that inadvertently depends on case-insensitivity. (That is, the developer sometimes opened Polish.dat,

Re: cocoapods: Problem with loading nib for a NSWindowController

2014-04-18 Thread Fritz Anderson
Oh, also, HFS+ is case-sensitive in iOS, lacking NSWindowController though it be. (Is it HFS+? I’m too eager to get out the door for me to check.) — F On 18 Apr 2014, at 5:30 PM, Fritz Anderson fri...@manoverboard.org wrote: To be less Hermetic… case-sensitivity has been an option

Re: Automatically resize parent view when subviews resize

2014-04-14 Thread Fritz Anderson
On 13 Apr 2014, at 11:01 PM, Lorenzo Thurman lore...@thethurmans.com wrote: I have an NSView with two subviews (A B) placed horizontally with respect to each other. The subviews can take a variable number of uniformly sized subviews. I’ve placed these constraints on subviews A B, (all done

Re: NSTask: how to launch a binary as if I launched it via terminal?

2014-04-14 Thread Fritz Anderson
On 14 Apr 2014, at 10:08 AM, Colas B colasj...@yahoo.fr wrote: OK. But without the simple quotes, it also fails. With the quotes, the error is /bin/bash: pico /Users/colas/myfile.txt: No such file or directory Without the quotes, the error is Error opening terminal: unknown. Thanks!

Re: Excessive open gui graphics files on Mavericks

2014-04-11 Thread Fritz Anderson
(The attribution chain is wrong, because I’m coming to this after the message that raised libcramfs.) It’s remarkably hard to get an answer to this, so I may be talking through my hat: Does this involve linking libcramfs.a into the binary you distribute? Have you published the source of your

Re: Memoryleak in SpriteKit?

2014-04-09 Thread Fritz Anderson
On 9 Apr 2014, at 9:58 AM, Jens Alfke j...@mooseyard.com wrote: Frankly, I don’t even know what that memory-usage graph in Xcode’s debugger pane is showing. I’ve found that “memory usage” is a slippery concept in a modern OS, and unless you know exactly what you’re looking at, it’s easy to

Re: To find if a file is fragmented

2014-04-08 Thread Fritz Anderson
On 8 Apr 2014, at 9:19 AM, Nick Rogers roger...@mac.com wrote: I just need to know, if a file is fragmented or not. I don’t need the frags details etc. Its for showing extended info about the selected file, like whether it is fragmented or not. Is it possible with out raw reading the

Re: error details in a NSAlert

2014-04-07 Thread Fritz Anderson
On 6 Apr 2014, at 2:52 PM, Daniel Luis dos Santos daniel.d...@gmail.com wrote: I want to display some text indicating a list of errors the user should correct before submitting data. I am using a modal NSAlert in which i set a message with a localised string from a table. I want to

Re: Ordered to-many relationship CoreDataGeneratedAccessors

2014-03-31 Thread Fritz Anderson
On 29 Mar 2014, at 3:11 AM, Rick Mann rm...@latencyzero.com wrote: I'm getting -[WireSegment replaceObjectInNodesAtIndex:withObject:]: unrecognized selector sent to instance When I try to send that message. This is one of the CoreDataGeneratedAccessors, for an ordered to-many

Re: Cocoa-dev Digest, Vol 11, Issue 170

2014-03-31 Thread Fritz Anderson
On 29 Mar 2014, at 2:42 PM, Rick Mann rm...@latencyzero.com wrote: Oh, thank you! My googling turned up all sorts of stuff for the old accessors, but I couldn't find anything about this. I wish they'd generate the stubs like they used to. On Mar 29, 2014, at 09:11 , Rick Aurbach

Re: Understanding Application crash

2014-03-25 Thread Fritz Anderson
On 25 Mar 2014, at 12:48 AM, Appa Rao Mulpuri appar...@ivycomptech.com wrote: All of this depends on your being able to produce the exception at least once. I agree that this is easier said than done. Exception type is: ERROR 2014-03-22 08:21:59 +0530 An uncaught exception occured Name:

Re: EULA presentation requirements?

2014-03-18 Thread Fritz Anderson
On 10 Feb 2014, at 10:25 PM, rick.langschultz rick.langschu...@me.com wrote: Doesn't [EULA] stand for end-user LICENSE agreement, aren't such licenses prohibited per the clear language in the agreement as outlined? My rule, if you have a question about it, don't. I must not be clear on

Re: bouncing icon in dock

2014-03-12 Thread Fritz Anderson
On 12 Mar 2014, at 12:15 PM, iseecolors iseecol...@rsqrdc.us wrote: I do override sendEvent:, but I don’t see how that would matter. Begging pardon, but I’d think your next move is to see whether it _does_ matter. If you saw that something in your code would matter in causing a bug, you’d

Re: NSArray's objectAtIndex compiles to objectAtIndexedSubscript?

2014-03-07 Thread Fritz Anderson
On 7 Mar 2014, at 6:54 AM, Bill Cheeseman wjcheese...@gmail.com wrote: My code calls -[NSArray objectAtIndex:]. I compile it with Xcode 5.0.2 on OS X 10.9.x Mavericks in a project with the target's Base SDK set to 10.9 and the OS X Deployment Target set to OS X 10.7. It works fine when I run

Re: secure uitextfield is not secure

2014-03-05 Thread Fritz Anderson
On 5 Mar 2014, at 1:17 PM, Luther Baker lutherba...@gmail.com wrote: I'm generally a big fan of Cocoa Touch - but why does the secure option on a UITextField still display the character you are typing? Touch keyboards offer almost no user feedback compared to physical ones. The keys on the

Re: tableView - message sent to deallocated instance

2014-02-26 Thread Fritz Anderson
On 25 Feb 2014, at 2:39 PM, Pax 45rpmli...@googlemail.com wrote: This is a really weird problem (in my view, anyway), because it only occurs in a very particular set of circumstances. My application is NSDocument based (just in case it makes a difference), and my application uses ARC.

Re: NSNumber : method to return pointer to represented value

2014-02-21 Thread Fritz Anderson
On 21 Feb 2014, at 6:12 AM, jonat...@mugginsoft.com wrote: I require an pointer to the value represented by an NSNumber. (Assuming “value represented” means @1 - 1, @HUGE - HUGE.) No interior pointer exists as the class is immutable. Immutability isn’t the point. The point is that the class

Re: Changes in -performSelectorOnMainThread: from iOS 6 to 7?

2014-02-14 Thread Fritz Anderson
On 12 Feb 2014, at 1:29 PM, Rick Mann rm...@latencyzero.com wrote: I think you misunderstand my question. I know about the new concurrency types. I'm not interested in that. I want to know why my old code works better on iOS 7 than 6. Given that the new concurrency method goes back a couple

Re: Changes in -performSelectorOnMainThread: from iOS 6 to 7?

2014-02-12 Thread Fritz Anderson
On 11 Feb 2014, at 6:04 PM, Rick Mann rm...@latencyzero.com wrote: I'm updating an old project that was built long ago, skipping udpates for iOS 5 6. One of the things my app does, in an NSOperation, is call -performSelectorOnMainThread: (waiting until done) as it integrates downloaded

Re: EULA presentation requirements?

2014-02-11 Thread Fritz Anderson
On 10 Feb 2014, at 7:36 PM, SevenBits sevenbitst...@gmail.com wrote: What's funny is that Xcode - distributed through the Mac App Store - does show a license screen at first launch. This would mean that Apple is breaking its own rules, if in fact that clause means what you say. Old Latin

Re: Getting QuickLook to work with NSDocument

2014-02-10 Thread Fritz Anderson
On 8 Feb 2014, at 5:32 AM, Pax 45rpmli...@googlemail.com wrote: I'm trying to get QuickLook preview to work with NSDocument - much as in the QuickLookDownloader example provided by Apple. I thought I had it all set up correctly - #import Quartz/Quartz.h @interface Document :

Re: Core Data : Synchronizing objects with SQLite file

2014-02-10 Thread Fritz Anderson
On 7 Feb 2014, at 3:58 PM, Jerry Krinock je...@ieee.org wrote: Executing an ‘update’ query with another program upon the SQLite file, I changed a different attribute of the problem object. Upon re-executing the fetch request in lldb, the problem object was now a fault. I then sent

Re: Legal Opinion on GCUndoManager

2014-01-31 Thread Fritz Anderson
On 29 Jan 2014, at 11:24 PM, Jerry Krinock je...@ieee.org wrote: On 2014 Jan 29, at 13:03, Keary Suska cocoa-...@esoteritech.com wrote: unfortunately it [GCUndoManager] is not App Store safe … as it relies on a private method call for proper NSDocument change tracking… I just spent

Re: Xcode 5 Obj-C++

2014-01-31 Thread Fritz Anderson
On 30 Jan 2014, at 4:14 PM, Jens Alfke j...@mooseyard.com wrote: And C++ partisans would tell you that many of these things are limitations of the usual C++ runtimes, not the language itself, but I'm not aware of any current runtimes that avoid them. For reference, see

Re: Legal Opinion on GCUndoManager

2014-01-31 Thread Fritz Anderson
On 31 Jan 2014, at 11:46 AM, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Jan 31, 2014, at 09:32 , Fritz Anderson fri...@manoverboard.org wrote: I can’t offer legal opinions or advice (retirees from the bar are particularly forbidden to do so) … I can’t help asking

Re: What iOS device?

2014-01-31 Thread Fritz Anderson
On 31 Jan 2014, at 12:45 AM, KappA rejek...@gmail.com wrote: I came across this the other day. Have you already looked at this? http://stackoverflow.com/questions/448162/determine-device-iphone-ipod-touch-with-iphone-sdk Very strange that nobody (until I did) noticed that if you want to

Re: Non-breaking hyphen in UILabel?

2014-01-24 Thread Fritz Anderson
On 24 Jan 2014, at 2:19 AM, Rick Mann rm...@latencyzero.com wrote: Thanks. That certainly works, but I found the trick: set the line break mode for the whole thing to word, and put in the non-breaking hyphen using the Special Characters palette. I see there is such a thing as a nonbreak

Re: IOBluetoothDeviceSelectorController and NSImage compositeToPoint

2014-01-21 Thread Fritz Anderson
On 21 Jan 2014, at 3:52 AM, Livio Isaia lis...@tiscalinet.it wrote: when I call (self is NSObject NSApplicationDelegate) [deviceSelector beginSheetModalForWindow:[self window] modalDelegate:self didEndSelector:@selector(browseEnd: returnCode: contextInfo:) contextInfo:NULL] in the

Re: Resizing Detail View of UISplitViewController

2014-01-09 Thread Fritz Anderson
unacceptable to the App Store reviewers. — F -- Fritz Anderson fri...@mac.com Xcode 5 Start to Finish: Available April 2014 from Addison Wesley ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Auto Layout with NSSplitView, NSScrollView

2014-01-06 Thread Fritz Anderson
On 4 Jan 2014, at 1:38 PM, thatsanicehatyouh...@me.com wrote: I like your user name. I have a couple of questions about using auto layout (AL) with NSSplitView and NSScrollView. I have watched the (excellent) WWDC videos from 2012, but am having problems. I'm trying to implement an

Re: How is my CFRunLoopTimer getting called during a CFReadStream client callback? ANSWER

2014-01-06 Thread Fritz Anderson
wrong, or that Apple shouldn’t spend resources on solving the problem, but it is a problem to which I see no easy solution. (And anyway, the current system is lucrative for me.) — F -- Fritz Anderson fri...@mac.com Xcode 5 Start to Finish: Available April 2014 from Addison

Re: NSShadow with [bezierPath addClip]

2013-12-31 Thread Fritz Anderson
On 31 Dec 2013, at 6:15 AM, Leonardo mac.iphone@gmail.com wrote: In my NSView subclass, I have to draw an image within a bezierPath and apply an NSShadow to the result. So within the drawRect: method I add [bezierPath addClip]; [mImage drawInRect:inRect fromRect:fromRect

Re: NSTextTable with only certain text selectabled

2013-12-28 Thread Fritz Anderson
On 21 Nov 2013, at 10:55 AM, Andrew Arrow one...@gmail.com wrote: How do I make a drag select on a NSTextView with an NSAttributedString that contains a 2 column NSTextTable, only select the text in the 1st column? You can see a video of the mac app skype doing this here:

Re: UISlider with custom images narrow thumb

2013-12-28 Thread Fritz Anderson
On 21 Nov 2013, at 8:36 AM, John Spicer jspi...@synacor.com wrote: I'm trying to get a UISlider working with custom images. I've gone through the docs, and I know how to set the images. The question (and the problem) is a little different. Our design department has given us a thumb image

Re: DockTile sample code, Principal class is DockTile ?

2013-12-28 Thread Fritz Anderson
On 28 Nov 2013, at 5:13 PM, Eden zeppenw...@lafn.org wrote: In Apple's DockTile sample code there is a an app and a dock tile plug-in. In the DockTilePlugIn-Info.plist, the Principal class is valued as DockTile, but there is no such class-- the class in the source code is

Re: NSArray firstObject?

2013-12-22 Thread Fritz Anderson
On Dec 22, 2013, at 11:31 AM, Trygve Inda cocoa...@xericdesign.com wrote: [Quotes the documentation that says -[NSArray firstObject] is available since Mac OS 10.6.] This seems to be an error in the docs as the method does not seem to exist for me. I didn't see the method at all in the docs

Re: AutoLayout and and views not appearing after segues.

2013-12-10 Thread Fritz Anderson
On 10 Dec 2013, at 8:58 AM, Alex Zavatone z...@mac.com wrote: I've just run across a nasty behaviour where with AutoLayout on iOS 7, sometimes a view will not appear at all after a segue. The scary thing is that this is intermittent, and will either happen all the time for a build or

Re: AutoLayout and and views not appearing after segues.

2013-12-10 Thread Fritz Anderson
On 10 Dec 2013, at 1:41 PM, Fritz Anderson fri...@manoverboard.org wrote: Using the controls at the bottom-right of the Storyboard canvas, set the idiom to iOS 7. Open the Assistant editor and choose Preview. See what happens as you fiddle around with orientation and screen size, again

Re: ToolTips for Matrix Cells

2013-12-03 Thread Fritz Anderson
On 3 Dec 2013, at 9:45 AM, Jerry Krinock je...@ieee.org wrote: Possibly this does not work because there is actually only [one] cell instance? But, whatever the reason, if this requirement is important enough for you to write some extra code, you could try defining tool tip rects on the

Re: Best way to put a fixed view in a UITableViewController scene?

2013-11-26 Thread Fritz Anderson
On 26 Nov 2013, at 12:53 AM, Rick Mann rm...@latencyzero.com wrote: On Nov 25, 2013, at 21:11 , Luther Baker lutherba...@gmail.com wrote: Maybe I am missing something - but I just created a new Tab based project and dropped a UITableView directly on the FirstViewController, under the View

Re: Stale xib files

2013-11-17 Thread Fritz Anderson
On Nov 17, 2013, at 8:50 AM, Roland King r...@rols.org wrote: No I'm not sure that it is. Appstore updates really do blow things away and start over. I'm not sure that anything less than that does that. Has that changed? At WWDC 2012 (as I remember), one of the big features of iOS 6 was

Re: UIPopover arrow not centered on source frame

2013-11-14 Thread Fritz Anderson
On 13 Nov 2013, at 11:28 PM, Rick Mann rm...@latencyzero.com wrote: I use a storyboard segue to present this popover, but it's not centered on the button: http://cl.ly/image/1S153u1a1I3O Any idea what's wrong? TIA, [Shows something that looks like a gray gear-icon UIBarButtonItem

  1   2   3   4   5   6   7   >