Accessibility Settings

2024-01-10 Thread Tom Doan via Cocoa-dev
ion? Best regards, Tom Doan --- Estima 2717 Harrison St Evanston, IL 60201 USA ___ 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

Re: Intermittent invisible NSWindow

2021-11-18 Thread Tom Doan via Cocoa-dev
kiness that forces too-small > frame, though not enough to make it disappear. > > Keary Suska > Esoteritech, Inc. > "Demystifying technology for your home or business" > > > > > On Nov 15, 2021, at 7:13 AM, Tom Doan via Cocoa-dev > > wrote:

Re: Intermittent invisible NSWindow

2021-11-15 Thread Tom Doan via Cocoa-dev
Esoteritech, Inc. > "Demystifying technology for your home or business" > > > > > On Nov 13, 2021, at 9:52 AM, Tom Doan via Cocoa-dev > > wrote: > > > > I'm having a problem with an application where a small percentage of > > users have

Intermittent invisible NSWindow

2021-11-13 Thread Tom Doan via Cocoa-dev
doesn't come up initially. I can't reproduce this on any of my computers running three different flavors of MacOS (including Big Sur and Monterey). What should I be looking for that might cause this behavior. Best regards, Tom Doan --- 2717 Harrison

Re: ARC and C++ structures

2021-09-15 Thread Tom Doan via Cocoa-dev
Thanks. That did it. Interestingly, not only did the Applie Migration tool not flag a potential problem, but the docs on NSWindow and releaseWhenClosed don't even hint of it. > Hi Tom, > > > On Sep 14, 2021, at 9:53 AM, Tom Doan via Cocoa-dev > > wrote: > > &

ARC and C++ structures

2021-09-14 Thread Tom Doan via Cocoa-dev
really seen any good description of how ARC interacts with C++. A release there seems fine---the question is where is the earlier (apparently erroneous) release. Tom Doan Estima --- 2717 Harrison St Evanston, IL 60201 USA ___ Cocoa-dev mailing lis

Re: NSToolbar in Catalina

2020-03-23 Thread Tom Doan via Cocoa-dev
e > > image = [NSBundle imageForResource:imgName]; > > -Dave > > On 3/23/20, 1:10 PM, "Cocoa-dev on behalf of Tom Doan via > Cocoa-dev" on behalf of Cocoa-dev@lists.apple.com> wrote: > > To provide a bit of additional information, the toolbar icons

Re: NSToolbar in Catalina

2020-03-23 Thread Tom Doan via Cocoa-dev
t ones are supposed to be active anyway. Does anyone > have an idea what the problem might be? > > Best regards, > > Tom Doan > Estima > --- > 2717 Harrison St > Evanston, IL 60201 > USA > > > ___ > > Co

NSToolbar in Catalina

2020-03-23 Thread Tom Doan via Cocoa-dev
icons look correctly dimmed and the washed out ones are supposed to be active anyway. Does anyone have an idea what the problem might be? Best regards, Tom Doan Estima --- 2717 Harrison St Evanston, IL 60201 USA ___ Cocoa-dev mailing list (Coco

Re: NSString drawAtPoint in Mojave

2018-12-13 Thread Tom Doan
n High Sierra. Anybody have any idea > what might be going wrong with this? > > Best regards, > > Tom Doan > --- > Estima > 1560 Sherman Ave #1029 > Evanston, IL 60201 > USA > > > ___ > > Cocoa-dev mail

Re: NSString drawAtPoint in Mojave

2018-11-07 Thread Tom Doan
> On Nov 7, 2018, at 11:40 AM, Tom Doan wrote: > > > >> Does the "Layer-Backed Views" section of the AppKit Release Notes > >> for 10.14 explain what you're seeing? > >> <https://developer.apple.com/documentation/macos_rele

Re: NSString drawAtPoint in Mojave

2018-11-07 Thread Tom Doan
> > > > I just started testing a port of my application to Mojave. I'm > > having a rather odd problem with NSString drawAtPoint > > withAttributes. I use that to add text to graph windows. All the > > lines and fills look fine, but the text, done with drawAtPoint, > > doesn't show on the screen.

NSString drawAtPoint in Mojave

2018-11-06 Thread Tom Doan
if I take the window and create a PDF from it, everything looks fine. It also works fine on High Sierra. Anybody have any idea what might be going wrong with this? Best regards, Tom Doan --- Estima 1560 Sherman Ave #1029 Evanston, IL 60201 USA ___

runModalSession handling

2018-04-05 Thread Tom Doan
continued on 0 and 1, and that seemed to work around this, but I would really like to understand what is wrong with this setup. Best regards, Tom Doan --- 1560 Sherman Ave #1029 Evanston, IL 60201 USA #if 0 // // Original code // itsRC = (LOGICAL) ([NSApp

NSAccessibility

2017-07-13 Thread Tom Doan
't know how to prevent this call from being made. Any suggestions? Best regards, Tom Doan Estima Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x, 0x Application Specific Information: *** Terminating app due to uncaught exception 'NSInvalidArgume

Re: NSProgressIndicator indeterminate

2017-04-13 Thread Tom Doan
> On Apr 13, 2017, at 13:35 , Tom Doan wrote: > > > > the indeterminate one has an almost imperceptibly lighter > > medium-dark moving over medium-dark. > > This suggests you have set your system appearance to Graphite instead > of Blue (in System Preferences -

NSProgressIndicator indeterminate

2017-04-13 Thread Tom Doan
is a *very* slight gradient moving across the bar. While the determinate bar is medium-dark gray moving over light gray, the indeterminate one has an almost imperceptibly lighter medium-dark moving over medium-dark. This seems less than ideal. Is there some setting that can change that? Tom Doa

Re: Gestures cause crash in Sierra

2016-11-30 Thread Tom Doan
er is sent to it) which causes the crash. Replacing the origin with 0.0,0.0 fixes the problem, but that doesn't help with our existing software. > On Nov 23, 2016, at 13:32 , Tom Doan wrote: > > > > OS Version:Mac OS X 10.12 (16A323) > > I´d suggest you try

Gestures cause crash in Sierra

2016-11-23 Thread Tom Doan
tly appreciated. Best regards, Tom Doan Estima --- 1560 Sherman Ave #1029 Evanston, IL 60201 USA Process:   RATSPro [986] Path:  /Applications/RATS Pro 9.1/RATSPro.app/Contents/MacOS/RATSPro Identifier:   com.estima.rats Version:   9.10.5 (1) Code T

NSAlert and threading

2016-05-23 Thread Tom Doan
a separate thread), the alert box stays on the screen until the operation is done. release doesn't work. orderout on the window doesn't work. Is there any way to do this (other than changing the threading) so the alert box goes away when I'm done with it? Best regards, Tom Doa

HIThemeGetTextDimensions problems

2016-04-22 Thread Tom Doan
,&cgwidth,NULL,NULL); itsWidth = cgwidth; } Best regards, Tom Doan Estima --- 1560 Sherman Ave #1029 Evanston, IL 60201 USA ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

Problem in notification

2014-06-10 Thread Tom Doan
ets called in a completely different situation---the one that I intended. I have no idea what it's trying to do here. (What's an NSScrollerImp?) and no idea how to trap it to figure out what the problem is. Any help anyone can offer would be appreciated. Tom Doan Estima Proc

Zombie NSWindow

2014-05-08 Thread Tom Doan
the Window menu, but it doesn't respond to anything. (For instance, I can't try to close it again.) I've put NSLogs in a bunch of places but can't seem to locate what causes an apparently dead window to reappear. Any though

Re: NSHelpManager

2014-04-29 Thread Tom Doan
the search box, it goes through my custom help handling and pops up the correct window. I don't see how to cut the stop at the search box out of the process---it doesn't *look* like the Help is a custom NSMenuItem, but it sure acts like one. Best regards, Tom Doan Estima > On 201

NSHelpManager

2014-04-25 Thread Tom Doan
the desired level. I was hoping that there would similarly be a showHelp in NSResponder, but it appears that showHelp always goes straight to the NSApplication. Is there any way to work get the type of behavior I need? Best regards, Tom Doan Estima __

Re: NSButton/NSBox interaction

2014-04-10 Thread Tom Doan
f and doesn't go off and manage itself along with the > other buttons that the OS thinks (incorrectly in this case) are > logically linked to it. > > Tom Doan > Estima > > > > On Apr 10, 2014, at 6:57 AM, Keary Suska > > > wrote: > > > >

Re: NSButton/NSBox interaction

2014-04-10 Thread Tom Doan
nt it off and doesn't go off and manage itself along with the other buttons that the OS thinks (incorrectly in this case) are logically linked to it. Tom Doan Estima > > On Apr 10, 2014, at 6:57 AM, Keary Suska > > wrote: > > > >> On Apr 9, 2014, at 5:30 PM,

NSButton/NSBox interaction

2014-04-09 Thread Tom Doan
behavior so I can override it. Can someone explain what's happening, please? Thanks, Tom Doan Estima ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the mo

Re: NSStackView basics

2013-11-12 Thread Tom Harrington
nts like setting the equivalent of @"V:|-[subview2]-" makes both visible (with different sizes). Looking at the demo project, I see now that there are constraints with similar effect, which is why it works. On Mon, Nov 11, 2013 at 6:29 PM, Ken Ferry wrote: > > Hi Tom, > > I

NSStackView basics

2013-11-08 Thread Tom Harrington
I don't know what. I've been looking at Apple's InfoBarStackView demo app but haven't worked out which detail it has that I don't (Apple's demo: https://developer.apple.com/library/mac/samplecode/InfoBarStackView/Introduction/

Re: why isn't id an id?

2013-10-04 Thread Tom Davie
h the fact that ids come up all the time, and show some support for wanting a language where the compiler can make more proofs for us. Thanks Tom Davie * prove is a loaded term when it comes to objective-c, as the runtime can mess up your compile time proo

Re: Analyser reports memory leak… where?

2013-09-12 Thread Tom Davie
EventTypes retain] autorelease]; > } It’s not a hard and fast rule, and in fact collection access does not do this, so it’s entirely possible to do things like: id a = x[5]; [x removeObjectAtIndex:5]; [a crashMyProgram]; Tom Davie ___ Cocoa-dev maili

Re: 64-bit iOS

2013-09-10 Thread Tom Davie
; Maybe, maybe not. The flip side is that pointers are twice as large, so half > as many fit in cache. And off when you do need to hit RAM you need to fetch more data. Tom Davie ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: 64-bit iOS

2013-09-10 Thread Tom Davie
ow-down due to the increase of instruction and > pointer size. Note, this was actually more significant on x86, where most of the mess caused by CISC (like having bugger all registers) got sorted out. Tom Davie ___ Cocoa-dev mailing list (Cocoa-dev@lis

Re: 30x faster JSON date parsing

2013-09-09 Thread Tom Davie
er to parse. > > Yes. It's ridiculous that a lot of JSON APIs send ISO 8601-formatted (or > other human-readable format) dates. Yes, it absolutely is, when no human is going to read them. Tom Davie ___ Cocoa-dev mailing list (Cocoa-dev@l

Re: ARC vs Manual Reference Counting

2013-09-09 Thread Tom Davie
On 9 Sep 2013, at 11:49, Jean-Daniel Dupas wrote: > > Le 9 sept. 2013 à 11:33, Tom Davie a écrit : > >> >> On 9 Sep 2013, at 10:18, Jean-Daniel Dupas wrote: >> >>> >>> Le 9 sept. 2013 à 09:58, Tom Davie a écrit : >>>

Re: ARC vs Manual Reference Counting

2013-09-09 Thread Tom Davie
On 9 Sep 2013, at 10:18, Jean-Daniel Dupas wrote: > > Le 9 sept. 2013 à 09:58, Tom Davie a écrit : > >> >> On 9 Sep 2013, at 09:44, Kyle Sluder wrote: >> >>> Thirded. I thought I wouldn't like it. As soon as I didn't have to manage >

Re: ARC vs Manual Reference Counting

2013-09-09 Thread Tom Davie
r converting to ARC, I have seen numbers between 30% and 100% slowdown with ARC. The average is probably around 50%. I have never seen performance improve when using ARC. Tom Davie ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Unicode chars in string

2013-09-09 Thread Tom Davie
urancesOfString:@“→” withString:@“⤜”]. Tom Davie ___ 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/Unsubscr

Re: Threadsafe copy of objective c object

2013-09-03 Thread Tom Davie
What I’m surprised no on has mentioned here is the trivial… Remove the mutation methods. Make your object immutable, the referential transparency will give you “free” parallelism. If you want a mutated version of the object, create a new object. Tom Davie

Re: How to fix warning?

2013-08-28 Thread Tom Davie
unsigned, as is the bigger issue in this case), you must cast them either explicitly (by adding the casts in this expression), or implicitly, by assigning the littorals to a variable of the desired type. Tom Davie ___ Cocoa-dev mailing list (Cocoa-dev@l

Re: "Introducing ioscomponents.com"

2013-08-28 Thread Tom Davie
to select the export type, and a UIPicker to select the export format. That said, don’t get disheartened – a good, high quality data table is something that would be very useful on iOS – just try to polish it up more! Tom Davie On 27 Aug 2013, at 04:56, Jason Gibbs wrote: > Also one m

Re: NSLog object = nil?

2013-08-20 Thread Tom Davie
anagement. Instead, whatever is holding strong references to the item store needs to release those references. Tom Davie ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the lis

Re: IB autolayout is impossible

2013-08-20 Thread Tom Davie
is doing very wrong here :D Tom Davie On 20 Aug 2013, at 09:55, Rick Mann wrote: > I have filed literally hundreds of bug reports. I get the spirit of what > you're saying, but I'm so stressed from this project (and IB's hand in it), > and so demoralized from hav

Re: IB autolayout is impossible

2013-08-20 Thread Tom Davie
extra view. Tom Davie On 20 Aug 2013, at 01:48, dangerwillrobinsondan...@gmail.com wrote: > In general in 4.x add your constraints that will make a satisfiable layout, > then remove the ones you don't want. > The next one does less trying without asking but this one is not that ba

Re: How to detect a Retina Mac

2013-08-18 Thread Tom Davie
apRep release]; No need for the complex cocoa to CG manoeuvrings there, this will do fine: NSSize size = …; CGColorSpaceRef rgbColorSpace = CGColorSpaceCreateDeviceRGB(); CGContextRef ctx = CGBitmapContextCreate(NULL, size.width, size.height, 8, 8 * 4 * size.width, rgbColorS

Re: How to detect a Retina Mac

2013-08-18 Thread Tom Davie
On 18 Aug 2013, at 15:56, Gerriet M. Denkmann wrote: > > On 18 Aug 2013, at 20:09, Tom Davie wrote: > >> >> On 18 Aug 2013, at 15:03, Gerriet M. Denkmann wrote: >> >>> I just noticed that the program I use to create Png files creates files >>

Re: How to detect a Retina Mac

2013-08-18 Thread Tom Davie
suggested, it’s just unnecessary here. Tom Davie ___ 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/Unsubscr

Document scope security bookmark, catch 22?

2013-08-14 Thread Tom Harrington
ve the user save an empty document first just so I can create these bookmarks the next time around? -- Tom Harrington atomicb...@gmail.com AIM: atomicbird1 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests o

Re: "Stale" URL bookmarks?

2013-08-14 Thread Tom Harrington
On Tue, Aug 13, 2013 at 10:08 PM, Quincey Morris < quinceymor...@rivergatesoftware.com> wrote: > On Aug 13, 2013, at 19:20 , Tom Harrington wrote: > > What does "stale" mean in this context? And if the bookmark is stale, what > if anything should I do (or

"Stale" URL bookmarks?

2013-08-13 Thread Tom Harrington
When resolving a URL bookmark, one of the options is a BOOL * that on return tells you if "the bookmark data is stale". What does "stale" mean in this context? And if the bookmark is stale, what if anything should I do (or not do) in response to that? -- Tom Harrington atom

Re: reverse scanner

2013-08-10 Thread Tom Davie
On 10 Aug 2013, at 22:44, Keary Suska wrote: > On Aug 10, 2013, at 12:17 PM, Tom Davie wrote: > >> Heh, I’d actually argue that NSScanner is a much much better API to use here >> (and in fact nearly everywhere). Regular expressions constrain you only to >> regul

Re: reverse scanner

2013-08-10 Thread Tom Davie
turing complete program. About the only use for regular expressions I can think of is asking NSScanner to scan something that it doesn’t by default know about. Tom Davie On 10 Aug 2013, at 19:53, Jerry Krinock wrote: > > On 2013 Aug 10, at 10:07, Boyd Collier wrote: > >> but

Re: How to convert an NSString to

2013-08-07 Thread Tom Davie
> different kinds of whitespace. This is incorrect. %20 is specifically for representing the 0x20th Unicode character – that is “space”. It is not for representing other whitespace characters like tab (%09) etc. Tom Davie ___ Cocoa-dev mailin

Re: Synchronous Serial Port Protocol messaging With NSOperationQueue/GCD

2013-08-07 Thread Tom Davie
hould be checked and set to stop any other operations proceeding until the semaphore is unset. When the device responds, the semaphore should be unset. You can then make your operation queue a concurrent queue, rather than a serial one, so that you can send messages to more than one device at t

Re: Mixing Obj-C and C "methods"

2013-08-07 Thread Tom Davie
t reason – making everything effectively a global is just terrible design. Tom Davie ___ 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(a

Re: when __bridge isn't required

2013-07-27 Thread Tom Davie
The first gives me the following error: Implicit conversion of Objective-C pointer type 'NSString *' to C pointer type 'CFStringRef' (aka 'const struct __CFString *') requires a bridged cast Tom Davie On Jul 27, 2013, at 8:31 PM, Matt Neuburg wrote: > I feel

Re: LATIN SMALL LETTER U WITH DIAERESIS

2013-07-18 Thread Tom Davie
A workaround would be to use +[NSFileHandle fileHandleForWritingAtURL: error:] and -[NSFileHandle fileDescriptor] to get you a FD to use in C land. Tom Davie On Jul 17, 2013, at 11:26 PM, koko wrote: > With this character: > > LATIN SMALL LETTER U WITH DIAERESIS > Unicode: U+00F

Re: NSViewController subclass return type

2013-07-11 Thread Tom Davie
e the superclass implementation. Except that view is a read/write property, and this is a type error, because of this situation: UIVCSubclass *s = [[UIVCSubclass alloc] init...]; UIViewController *vc = s; [vc setView:[[[UIView alloc] init] autorelease]; Tom Davie _

Re: Isolated process for each NSDocument of my app

2013-06-13 Thread Tom Davie
On 13 Jun 2013, at 20:29, Daniele Margutti wrote: > > On 13 Jun 2013, at 20:05, Tom Davie wrote: > >> The best way is to write an application that's stable. The only reason >> browsers started doing this was because they had to deal with 3rd party code >> (

Re: Isolated process for each NSDocument of my app

2013-06-13 Thread Tom Davie
The best way is to write an application that's stable. The only reason browsers started doing this was because they had to deal with 3rd party code (e.g. flash) that was giving them a terrible reputation for instability. If you're controlling the entire app, you have no reasonable reason to do th

Re: Wanted: new owner for Mac apps

2013-05-07 Thread Tom von Schwerdtner
On Tue, May 7, 2013 at 9:54 AM, Steven Degutis wrote: > > These ones: https://github.com/sdegutis/grs > > (...) > > For the curious, I'm giving them away because > I think something got cut off here...? -Tom ___ Cocoa-d

Re: ^Block statement considered harmful for callbacks?

2013-04-25 Thread Tom Davie
up the request in the first place. I would consider that a much much much higher penalty than having to a bit careful about retain cycles. Thanks Tom Davie ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: ^Block statement considered harmful for callbacks?

2013-04-25 Thread Tom Davie
y time soon, nice as it > might be. Luckily, if you grab Landon Fuller's PLWeakCompatibility (and possibly Mike Ash's MAZeroingWeakRef too), you'll be able to use __weak in your non-arc code too. Thanks Tom Davie ___ Cocoa-dev mailing

Re: ^Block statement considered harmful for callbacks?

2013-04-25 Thread Tom Davie
he compiler *is* detecting some simple cases, as I suggested! Note – this does not make throwing blocks around without paying attention to retain cycles inherently safe though, the compiler can not statically infer all potential cycles. Thanks Tom Davie

Re: ^Block statement considered harmful for callbacks?

2013-04-25 Thread Tom Davie
On 25 Apr 2013, at 09:34, Oleg Krupnov wrote: > Tom, I disagree, because unlike other objects with strong refs, or say > @property(retain), the strong refs in blocks are created implicitly > and it's just too easy to let them slip out of attention. There is no > direct comm

Re: ^Block statement considered harmful for callbacks?

2013-04-25 Thread Tom Davie
to other objects. It's not blocks that are doing any of the above, it's reference counting. And we know that the issues are there – we just choose to have them because the issues with the less leaky solutions are even more severe (especially in C like languages). Thanks Tom Davie _

Re: ANN: new open-source window manager for OS X

2013-04-19 Thread Tom von Schwerdtner
Looks interesting. Any comment on how this relates to Slate (https://github.com/jigish/slate)? It seems to be roughly along the same lines (which would be fine, just asking). -Tom On Wed, Apr 17, 2013 at 12:44 PM, Steven Degutis wrote: > Called Windows.app. Source is on github: >

Re: Followup - Re: Is there a pattern for creating an object with global scope?

2013-04-15 Thread Tom Davie
st certainly be using dependancy injection instead, or some other method of avoiding it. Note also – simply using your app delegate as a store for things that aren't singletons, but only one of them is pointed at by your app delegate is also horrific – you're just substituting one sing

Re: Is there a pattern for creating an object with global scope?

2013-04-13 Thread Tom Davie
lass = [[MyClass alloc] init]; }); return _sharedMyClass; } This makes the access to the singleton thread safe when it's first created. Of course, you then get into the nightmare of trying to maintain thread safety when you have a chunk of global state lying around, but that's

Re: Accessing members from NSDictionary

2013-04-05 Thread Tom Davie
;s a subview of another view that's retained. The issue isn't quite as simple as "never retain IBOutlets". Thanks Tom Davie ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderat

Re: Accessing members from NSDictionary

2013-04-05 Thread Tom Davie
1) yes you could use the code you outlined to access the property 2) @property (assign, nonatomic) IBOutlet NSWindow *iWindow; Note though to be careful about the assign tag there – you may well want that to be a retain. Thanks Tom Davie On 5 Apr 2013, at 15:06, Pax <45rpmli...@googlemail.

Re: Accessing members from NSDictionary

2013-04-05 Thread Tom Davie
bility, you would be replacing someObject->someIvar = 56.9f; with someObject.someProperty = 56.9f; and { float someIvar; } with @property (assign, nonatomic) float someProperty; So neither is really true. Thanks Tom Davie ___ Cocoa-dev mail

Re: cocoa bindings performance

2013-02-17 Thread Tom Davie
to steer well clear of bindings (along with a couple of other techs that supposedly make life easier, like CoreData and Storyboards). Thanks Tom Davie On 15 Feb 2013, at 19:42, Maximilian Marcoll wrote: > > Hi everyone! > > I have a problem with bindings, or so it seems. > &g

Re: faster deep copies?

2013-02-14 Thread Tom Davie
re selective. But I'd appreciate any thoughts in > the meantime. One possible approach to this (though not one that's going to be as fast as a custom deepCopy method), would be to implement your own NSCoder subclass. I have in the past made keyed archivers which are sub

Re: How to avoid warning?

2013-01-21 Thread Tom Davie
On 21 Jan 2013, at 18:14, Dave wrote: > Hi All, > > I have the following code: > > if (class_RespondsToSelector(myClass,@selector(initWithManager:) == NO) > myObj = [[myClass alloc] init]; > else > myObj = [[myClass alloc] initWithManager:sel]]; > > > I get a warning on the initWi

Re: NSOpenPanel runModal on a dispatch

2012-12-17 Thread Tom Davie
t there, doing nothing, with no significant windows open, yet in an inconsistent state, and requiring modal interaction to sort it out? If that's your assertion, then I'd suggest you have a deeper seated design bug. Thanks Tom Davie ___ Cocoa-dev

Re: NSOpenPanel runModal on a dispatch

2012-12-17 Thread Tom Davie
quot; can change when an open panel > is opened. Wouldn't the correct thing in this state be to create a new project window associated with the project document, and then fire of an open sheet for that window so that it's only modal for the window? Thanks Tom Davie _

Re: NSOpenPanel runModal on a dispatch

2012-12-17 Thread Tom Davie
go "oh crap, I forgot to start that fade", and start it, with the open panel for the next video open? Thanks Tom Davie ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

Re: NSOpenPanel runModal on a dispatch

2012-12-17 Thread Tom Davie
interact > the app while an open panel displaying. But why? What's the issue with the user pausing a video while an open panel happens to be open? Thanks Tom Davie ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: NSOpenPanel runModal on a dispatch

2012-12-16 Thread Tom Davie
inish executing until the open dialog is closed. If the openDialog methods dispatch to the main queue, their dispatches will not occur until the main queue is able to run another block, which won't happen until your block finishes. You are very much blocking the main queue. Thanks Tom Da

Re: NSOpenPanel runModal on a dispatch

2012-12-16 Thread Tom Davie
ay. 1) You know exactly how big the array's going to be – 1 object, so why hint that it's going to contain 0 objects? 2) Why use insertObject: atIndex:0 rather than addObject: 3) Why use a mutable array at all? You could just use a constant array – NSArray *filetype = [NSArray

Re: NSFileManager - Incompatible persistent store

2012-11-25 Thread Tom Miller
h, https://dl.dropbox.com/u/3783094/BlogDemoAppDelegate.m <https://dl.dropbox.com/u/3783094/BlogDemoAppDelegate.m> On Thu, Nov 22, 2012 at 10:58 AM, Sean McBride wrote: > On Wed, 21 Nov 2012 18:17:26 -0500, Tom Miller said: > > >Sorry my bad! The warning states 'createDirectoryAt

Re: NSFileManager - Incompatible persistent store

2012-11-21 Thread Tom Miller
de if needed to. On Wednesday, November 21, 2012, Tom Miller wrote: > Sorry my bad! The warning states 'createDirectoryAtPath:attributes:' is > depreciated. I was able to get rid of that window warning once the app > launched, miss spelled something in my code. Though I'm

Re: NSFileManager - Incompatible persistent store

2012-11-21 Thread Tom Miller
On Wednesday, November 21, 2012, Tom Miller wrote: > Sorry my bad! The warning states 'createDirectoryAtPath:attributes:' is > depreciated. I was able to get rid of that window warning once the app > launched, miss spelled something in my code. Though I'm still unable to

NSFileManager - Incompatible persistent store

2012-11-21 Thread Tom Miller
older]; if ( ![fileManager fileExistsAtPath:applicationSupportFolder isDirectory:NULL] ) { [fileManager createDirectoryAtPath:applicationSupportFolder attributes:nil]; } -- - Tom Miller t...@pxlc.me pxlc.me ___ Cocoa-dev mailing list (Cocoa-dev@

Re: How To Safely Invoke a Block

2012-11-21 Thread Tom Davie
spatch_once(&onceToken, ^ { dispatchQueue = dispatch_queue_create("RXProgressQueue", DISPATCH_QUEUE_SERIAL); }); dispatch_sync(dispatchQueue, ^() { ProgressHandler handler = [self progressHandler]; handler(…); }); … } Tom Davie

NSSearchField selecting after sending its action

2012-11-17 Thread Tom Davie
ected). Does anyone know what weird property I've ended up accidentally selecting (or not selecting) here? Thanks Tom Davie ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the lis

Re: Is ARC any smarter than Xcode's 'Analyze'?

2012-11-12 Thread Tom Davie
ill > crash. > > Am I correct? Yes, ARC is significantly smarter than analyse. ARC is guaranteed to get memory management right (modulo retain cycles and weak refs that shouldn't be weak). Meanwhile the analyser is trying to understand what *you* did to try and m

Re: How to implement readonly property

2012-11-12 Thread Tom Davie
ken is an ivar, unlike I did. Tom Davie ___ 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/Up

Re: How to implement readonly property

2012-11-12 Thread Tom Davie
On 12 Nov 2012, at 13:39, Marco Tabini wrote: >> This is completely the wrong way to implement a property. The static >> variable will be shared between all instances. Here's how you should be >> doing a lazy loaded var: >> >> @implementation MyClass >> { >> NSDictionary *_someDictionary

Re: How to implement readonly property

2012-11-12 Thread Tom Davie
nce block, and then continue to execute (without touching the contents). Thus, both threads will receive the same dictionary (assuming it's the same instance it's called on), and it will be allocated only once. Tom Davie ___ Cocoa-

Re: a way to clear inactive RAM

2012-11-06 Thread Tom Davie
se "free" memory for things like disk caches if I currently do not need the RAM for applications. Tom Davie ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact th

Re: CGDisplayRegisterReconfigurationCallback not called when view in fullscreen

2012-07-24 Thread Tom Hohensee
monitor is shown but the main screen on the built-in display is black). I have tried various presentation options but results are similar. Thanks Tom On Jul 24, 2012, at 8:09 PM, Ken Thomases wrote: > On Jul 24, 2012, at 7:47 PM, Tom Hohensee wrote: > >> Anyone f

CGDisplayRegisterReconfigurationCallback not called when view in fullscreen

2012-07-24 Thread Tom Hohensee
lled when the monitor is unplugged. In fact the OS does not update the screen configuration until I exit fullscreen (through a test button I implemented on the main window). Any help would be appreciated I think I have exhausted all my google answers for CGDisplayRegisterReconfigurationCallback.

Re: Base64 encoding of NSImage

2012-07-01 Thread Tom Hohensee
Try here. it is a category for nsdata in this post. http://www.thohensee.com/?page_id=435 Tom Sent from my iPhone On Jul 1, 2012, at 10:26 AM, Alexander Hartner wrote: I am looking at available option to send an NSImage to a webserver. I came across gSoap however its licensing model makes it

Using custom controls on top of custom graphics

2012-02-07 Thread Tom Jeffries
c for the slider area and for the knob. Can someone point me to some source code that shows how to do this? Thanks, Tom Jeffries ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Core Data ignoring validation constraint

2012-01-09 Thread Tom Harrington
mediately. Is there some additional step I've missed? I'm using Xcode 4.2.1 on Mac OS X 10.7.2; results are the same in the simulator and on an iPhone 4s running iOS 5.0.1. -- Tom Harrington atomicb...@gmail.com AIM: atomicbird1 ___ Co

Re: Carousel - like control for Mac OS

2011-12-20 Thread Tom Hohensee
Have a look at iCarousel. Has a port for iOS as well as Mac OS. This can be done with ImageKit in IB as well. Just disable the scroll view and setup forward and back buttons that call the image index (nextIndex, etc). See imageKit docs. Tom On Dec 20, 2011, at 3:00 PM, Nick wrote

Re: awakeFromInsert called twice with nested contexts

2011-11-27 Thread Tom Harrington
On Sun, Nov 27, 2011 at 6:09 PM, Quincey Morris wrote: > On Nov 27, 2011, at 16:49 , Tom Harrington wrote: > > Actually I don't, so far as I can tell. As I mentioned in my previous > message, I get the same managed object ID both times. I haven't > checked the address

  1   2   3   >