How to mix Check boxes and Radio buttons in NSOutlineView?

2008-06-13 Thread John
Hi, I have a two level hierarchy displayed in NSOutlineView. Currently all items have check boxes, but I have a request to replace check boxes by radio buttons in some branches of the hierarchy, where only one item can be checked at a time. Other branches should keep check boxes, which allow check

Re: Cocoa Apple Script Problem

2008-12-19 Thread john
Hi John- If you are on Leopard, try taking a look at the documentation for the following method: - (id)newScriptingObjectOfClass:(Class)class forValueForKey:(NSString *)key withContentsValue:(id)contentsValue properties:(NSDictionary *)properties; The Cocoa Scripting Guide refers to the Leopard

RE: Safari-like tabs in my own app?

2009-01-26 Thread john
can see it in action (merged and all) in Pandora: http://www.positivespinmedia.com/shareware/Pandora/ It has since been much improved, and I'm a little out of touch with it - sorry I can't be of more help! John On Mon, 26 Jan 2009 22:17:21 +, Ulai Beekam wrote: >> Check ou

Identifying a specific Mac model

2015-09-13 Thread John Daniel
provides similar information. Is there anything like this for the Mac? Thanks, John Daniel ___ 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

Re: Identifying a specific Mac model

2015-09-14 Thread John Daniel
ervice that returns parseable XML. I don’t know if there is any query that will give me the machine icon. John Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

Re: Identifying a specific Mac model

2015-09-15 Thread John Daniel
display in gold on a new MacBook, but it seems to work on two MacBookPros and an iMac. John Daniel i...@etresoft.com > On Sep 14, 2015, at 12:43 PM, Jean-Daniel Dupas wrote: > > If you just want to current machine icon, just use + [NSImage > imageNamed:NSImage

Re: Identifying a specific Mac model

2015-09-15 Thread John Daniel
There is a gold icon in the system. I am hopeful that this method will retrieve it, if running on a gold MacBook. If not, people are reporting that it at least displays a silver MacBook icon and that’s as good as I can do on my own. John Daniel > On Sep 15, 2015, at 2:54 PM, Marek Hrušov

Re: Identifying a specific Mac model

2015-09-15 Thread John Daniel
new MacBook. It does seem to work, but my confidence is based more on faith than works. John Daniel i...@etresoft.com > On Sep 15, 2015, at 4:16 PM, Marek Hrušovský wrote: > > Can you please tell us the path? > You can load it with mentioned method, then fire Activity, hit

Re: Error unwrapping an optional which isn't an optional

2015-09-21 Thread John Daniel
I think the optional in question is the IB object. You may be accessing this property before your nib is completely setup. John Daniel Sent from my iPad ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: -[NSThread start] blocks ?!?

2015-09-27 Thread John Daniel
that any shared access uses that serial queue, but I find GCD much more straightforward. You may end up blocked in a semaphore again, but it will be your own semaphore and you can more easily debug it. John Daniel ___ Cocoa-dev mailing list (Cocoa

Re: -[NSThread start] blocks ?!?

2015-09-28 Thread John Daniel
> On Sep 28, 2015, at 12:13 AM, cocoa-dev-requ...@lists.apple.com > <mailto:cocoa-dev-requ...@lists.apple.com> wrote: > > Thank you, John. You are referring to what my secondary thread is doing. My > point is that if we can’t at least rely on -[NSThread start] re

Re: NSThread subclass get blocked on 'start' method call

2015-09-28 Thread John Daniel
ding unless you are doing something in that callback that blocks the UI. Even then, schedule your callback on the UI run loop and have your callback spawn the thread or async block. And that API is deprecated in iOS9 anyway. If you don’t need to support iOS 8 or earlier, use the new Contacts AP

Re: New warning in Xcode 7

2015-10-13 Thread John McCall
used this form of expression for years without any issues, why is it suddenly > one? Pre-increment is defined to return the value that would be stored in its operand. The actual store to the operand is indeterminately sequenced with returning that value, however. John. _

Re: Assigning an element of a swift array to a userdata parameter triggers didSet

2015-11-18 Thread John McCall
ke this: UnsafePointer(bitPattern: i) and get the Int back like this: unsafeBitCast(ptr, Int.self) The fact that the latter is apparently the only interface for getting back to an Int is probably a bug. John. ___ Cocoa-dev mailing list (Cocoa-dev

AppleEvents: Send port for process has no send right, port=( port:37207/0x9157 rcv:1,send:0,d:0 limit:5) (findOrCreate()/AEMachUtils.cp #526)

2015-11-21 Thread John MacMullin
, John MacMullin ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https

Hurdles in converting to Swift

2015-12-23 Thread John Brownie
t as the class for one scene. I've cleaned the build folder, but it still happens. Any wisdom on how to proceed? John -- John Brownie, john_brow...@sil.org or j.brow...@sil.org.pg Summer Institute of Linguistics, Ukarumpa, Eastern Highlands Province, Papua New Guinea Mussau-Emira language, Mu

Re: Hurdles in converting to Swift

2015-12-23 Thread John Brownie
___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.co

Re: Hurdles in converting to Swift

2015-12-24 Thread John Brownie
On 24/12/2015 11:49, Quincey Morris wrote: On Dec 23, 2015, at 17:38 , John Brownie mailto:john_brow...@sil.org>> wrote: 2015-12-24 10:43:40.664 AppName[10464:1086828] Unknown class SearchViewController in Interface Builder file. Try going to the inspector in IB and remove the clas

Re: Why doesn't SMJobBless sample work?

2016-01-11 Thread John Brownie
SMJobBless() its daemon. Now — any heads-up or hint will be greatly appreciated. You want the Even Better Authorization Sample Code rather than SMJobBless. John -- John Brownie, john_brow...@sil.org or j.brow...@sil.org.pg Summer Institute of Linguistics, Ukarumpa, Eastern Highlands Province, Papua New

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

2016-01-11 Thread John Brownie
On 12/01/2016 14:08, Eden Smallwood wrote: On 11/01/2016 18:44, Motti Shneor wrote: You want the Even Better Authorization Sample Code rather than SMJobBless. John I don't think he does. The E. B. A. S. C. relies on AEWP, which is utterly, hopelessly, unspeakably depre

Re: 32-bit / 64-bit roadmap

2016-01-21 Thread John McCall
g but 64 bits. >> >> Apple itself has a harder decision, because it doesn’t want to break >> developers’ remaining 32-bit products. (Add the “Kind” column to Activity >> Monitor to see what I mean.) >> >> All we can know is that deprecation will come no sooner th

Re: LGPL code in the Mac App Store?

2016-01-29 Thread John Daniel
com > <mailto:cocoa-dev-requ...@lists.apple.com> wrote: > > I think that this is a slightly uncharitable view of OSS devs, but not > terribly inaccurate. John Daniel Etresoft, Inc. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

NSDateFormatter behavior

2016-02-13 Thread John MacMullin
ed at:[aTextView setAutomaticQuoteSubstitutionEnabled:NO]; and [aTextView setAutomaticTextReplacementEnabled:NO]; but can’t figure out how to get the textfield textview from the NSFormCell. This of course assumes that this is the correct direction to take. Any ideas? Best regards, John __

[OT] Forums for Web Development?

2016-02-15 Thread John Bartleson
After getting many great tips from this list over the years, I find myself needing to switch gears and do some web development. I'm starting on a server-based app that will be the front end to a SQL database that may grow to be very large. Although it's easy to find info on the basic technologie

cycle windows

2016-02-26 Thread John Weeks
Is there a way to query the keyboard equivalent for Cycle Windows? Or maybe a notification of some sort that Cycle Windows has been triggered? Thanks! -John Weeks WaveMetrics, inc. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Returning a string value from a c function to a Objective-C class method. Is there an approved approach?

2016-03-04 Thread John McCall
complex but its all doable. > > Block objects can help. clang supports block objects in plain C code > (-fblocks, I think). They're just enabled by default on our platform in all language modes. John. > Your Objective-C code can create a block object that performs the callbac

Reading XML 1.1

2016-03-14 Thread John Brownie
RestrictedChar characters, but NSXMLDocument apparently only handles the XML 1.0 character set. Is there a way to make NSXMLDocument handle the fuller character set? If not, is there an alternative that will enable me to parse an XML 1.1 file with a minimum of effort? Thanks, John -- John

Re: Reading XML 1.1

2016-03-19 Thread John Brownie
On 14/03/2016 19:14, John Brownie wrote: Is it possible to read an XML 1.1 file using NSXMLDocument? The crucial thing for my purposes is that the character set allowed in XML 1.1 is larger. XML 1.0 defines characters as: Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD

Creating NSXMLDocument programmatically

2016-03-22 Thread John Brownie
ay to do this now. Thanks for any pointers. John -- John Brownie, john_brow...@sil.org or j.brow...@sil.org.pg Summer Institute of Linguistics, Ukarumpa, Eastern Highlands Province, Papua New Guinea Mussau-Emira language, Mussau Island, New Ireland Province, Papua New Guinea ___

Re: Creating NSXMLDocument programmatically

2016-03-22 Thread John Brownie
___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.co

Re: Codesign broken in 10.11.4

2016-04-07 Thread John Pannell
rounds yet - hope this helps! John On Thu, Apr 7, 2016, at 08:13 AM, Trygve Inda wrote: > My app is built on 10.11.3. It is a prefPane with one command line tool > and > three app bundles (four helper tools) in it's bundle. I am getting > GateKeeper warnings on 10.11.4 systems, but no

Re: BOOL parameter passed as nil object

2016-04-19 Thread John McCall
but a non-nil pointer will usually violate the representation rules and may result in unreliable behavior in practice. Plus, of course, even if it all works out on these primitive levels, it's still actually undefined behavior in the end, and so the com

Re: Converting to ARC and blocks

2016-05-02 Thread John McCall
ry inefficient) way to prevent that retain. That doesn't work in ARC, because assigning to a __strong __block variable retains the new value, just like assigning to any other __strong variable. So the migrator tries to recognize __block variables that are being used that way (i.e. __block

Re: Converting to ARC and blocks

2016-05-02 Thread John McCall
> On May 2, 2016, at 11:30 AM, Steve Mills wrote: > > On May 02, 2016, at 12:58 PM, John McCall wrote: > > > You don't have to declare something with __block just to use it in a block. > > __block specifically means that the variable will be captured *by > &g

Re: Receiver type for instance message is a forward declaration

2016-05-06 Thread John McCall
E > > return op != nil; > } > > The error I'm getting is: Receiver type 'RAOperation' for instance message is > a forward declaration. > > What does this error mean, and how can I fix it? It means you haven't #included the header with the @

Re: How to keep things alive in Arc?

2016-05-10 Thread John McCall
s full scope. You should use the precise-lifetime attribute. John. ___ 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

Re: Problem about math library and the standard namespace of Apple Clang

2016-05-12 Thread John McCall
call your function. You should not declare functions in the global namespace with the same name as C library functions unless you really do mean to override them. John. > I also compile the following C/C++ codes: > > ,--- > | #include > | #include &

Can initialKey & initialValue be set via bindings?

2016-06-15 Thread John Chacho
xtfield.stringValue) But despite the Model Key Path re-assuredly auto-completing to: "self.kTextfield.stringValue", it does not work. The values entered in the table are blank. Is there a way to bind initial key and initial value to textfield values using the Bindings Inspector? If not,

Re: Can initialKey & initialValue be set via bindings?

2016-06-16 Thread John Chacho
efore compiling and running. On Thu, Jun 16, 2016 at 2:40 PM, Quincey Morris < quinceymor...@rivergatesoftware.com> wrote: > On Jun 15, 2016, at 21:23 , John Chacho wrote: > > > If not, how can I add an arbitrary new record into the dictionary? > > > If I underst

Normalising file names on macOS

2016-09-22 Thread John Brownie
g] returns "A string made by normalizing the string’s contents using the Unicode Normalization Form D." That seems not to give what I need, but I haven't seen a better option. Is there such a method? John -- John Brownie In Finland on furlough

Re: Normalising file names on macOS

2016-09-22 Thread John Brownie
two different file systems. I could perhaps create a scratch file with the given name, but that runs into the possibility of different file systems. Still, if there's no better option, I can work with that. Oh, and if it makes any difference, I'm supporting back to OS X 10.8 curren

Re: Normalising file names on macOS

2016-09-22 Thread John Brownie
gFold() to case-fold the string,*after* normalising, before using it as a dictionary key.) John -- John Brownie In Finland on furlough from SIL Papua New Guinea ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin reques

Traceback from [SFLList removeItem:]

2016-10-26 Thread John Brownie
libsystem_pthread.dylib 0x000100e9e8c2 _pthread_wqthread + 1299 12 libsystem_pthread.dylib 0x000100e9e39d start_wqthread + 13 I assume that I can safely ignore these as someone leaving debug printing on, since all continues to work. Or do I need to worry? -- John Brownie In

Re: Traceback from [SFLList removeItem:]

2016-10-26 Thread John Brownie
Australia, snow is still pretty exciting, though less so for my wife, who is the Finn. -- John Brownie In Finland on furlough from SIL Papua New Guinea ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: function signature specialization crashlog

2016-10-31 Thread John McCall
could be going on? I'm afraid not. Please file a radar. John. > > cheers, > Torsten > > 0 Foo 0x0001000b8e10 > > function signature specialization Owned To Guaranteed> of Foo.StoresViewController.(v

Re: function signature specialization crashlog

2016-10-31 Thread John McCall
d in helping fix the compiler, > that's great, > but you should be bringing this up on swift-dev. If you're just trying to > figure out how > to get the Swift compiler to stop crashing on your code, the crash logs > probably > aren't going to help that much. >

Re: didPrint selector not called

2016-12-16 Thread John McCall
oes seem kindof weird to be ignoring the delegate/selector pair that was passed in, though. John. ___ 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: didPrint selector not called

2016-12-16 Thread John McCall
ithSettings to ignore the passed-in delegate and selector. Unless you're certain that the passed-in delegate and selector are never useful, you're probably breaking something. John. > > Jeremy > > -- > >> On 16 Dec 2016, at 18:26, Quincey Morris >

Re: didPrint selector not called

2016-12-16 Thread John McCall
> On Dec 16, 2016, at 11:33 AM, Jeremy Hughes > wrote: >> On 16 Dec 2016, at 19:29, John McCall wrote: >> >>> On Dec 16, 2016, at 11:24 AM, Jeremy Hughes >>> wrote: >>> Thanks for the link. >>> >>> I’ve looked at it, and I don

Giving names to undo actions

2016-12-21 Thread John Brownie
e only when you are actually doing the original action, and not when doing the undo version of it. Is that a correct interpretation? If so, how do you implement it? Do you test the NSUndoManager's undoing property and only set the name if it is NO? Any insights welcomed! John -- John Brown

Re: Giving names to undo actions

2016-12-21 Thread John Brownie
the other actually doing the work. The other is to check whether we're undoing and not set the name in that case. At present I'm leaning towards the latter. John Quincey Morris <mailto:quinceymor...@rivergatesoftware.com> 21 December 2016 at 10:44 On Dec 21, 201

Is SMJobBless still the correct way to do authorisation?

2017-01-09 Thread John Brownie
hat I can learn from? How will mixing Objective-C in the helper application and Swift in the main application work in practice? Any other advice? Thanks, John -- John Brownie In Finland on furlough from SIL Papua New Guinea ___ Cocoa-dev mailing list (

FSEventStreamCallback in Swift

2017-01-24 Thread John Brownie
mEventId(kFSEventStreamEventIdSinceNow), scanInterval, FSEventStreamCreateFlags(kFSEventStreamCreateFlagUseCFTypes)) I may well have the wrong way of handling the conversion through the context with all the unsafe pointer types, as I'm still rather new to Swift. -- John Brownie In Finland on furlough from

Debugging a privileged helper

2017-01-26 Thread John Brownie
some more ideas on how to track down the problem. Any suggestions? Thanks in advance! -- John Brownie In Finland on furlough from SIL Papua New Guinea ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator c

Re: Debugging a privileged helper

2017-01-26 Thread John Brownie
xy with the appropriate code proxy.authenticatedCreateDirectory(url: location, authorization: authorization) { handler($0, $1) } == All of this is derived from Even Better Authorization Sample, translated to Swift. -- John Brownie In Finland on furlough fr

Re: Debugging a privileged helper

2017-01-27 Thread John Brownie
7;s added to the binary with the linker flag -sectcreate __TEXT __launchd_plist (path to the file). The launchd plist is exactly analogous to the tool that is already working, just the identifiers changed. -- John Brownie In Finland on furlough fr

Table selection and bindings

2017-02-14 Thread John Brownie
problem becomes that now the inspector is still pointed at an object, but there's no selection, and the logic goes badly wrong. Am I doing things incorrectly, or is there something that I can do to ensure that the change to the underlying array shown by the table triggers a selection chan

Re: Table selection and bindings

2017-02-14 Thread John Brownie
don't want to break it. When I get that far in the Swift rewrite, then I can poke at it some more in the hope of making it cleaner. Hopefully all will be well, so thanks for the pointers. John Quincey Morris <mailto:quinceymor...@rivergatesoftware.com> 14 February 2017 at 20:45 +1

Re: Responder Chain Confusion

2014-09-07 Thread John Joyce
On 2014/09/08, at 8:49, dangerwillrobinsondan...@gmail.com wrote: > > > > >>> On 2014/09/08, at 3:16, Kyle Sluder wrote: >>> >>> On Sep 7, 2014, at 9:24 AM, dangerwillrobinsondan...@gmail.com wrote: >>> >>> Hi all >>> >>> I just spent a bit of time poking around the responder chain and ni

Re: MapKit location authorization

2014-09-19 Thread John Tsombakos
You also need to add items to your Info.plist file: NSLocationAlwaysUsageDescription and/or NSLocationWhenInUseUsageDescription On Sep 19, 2014, at 2:01 PM, Gerriet M. Denkmann wrote: > > So I put it into viewDidLoad of the view controller for the MapView. > > But: > > authorizationStatus

Odd bug in HIThemeDrawWindowFrame on a retina display

2014-09-26 Thread John Weeks
around this? Should I be using some sort of more-modern API to do this? Every bit of code I've found via Google seems to draw UI elements using HITheme APIs. Thanks for any insight, John Weeks ___ Cocoa-dev mailing list (Cocoa-dev@lists.appl

Re: A Stack of Editors

2014-10-04 Thread John Joyce
> On Oct 4, 2014, at 11:27 AM, Charles Jenkins wrote: > > I just asked a question about the NSStackView, but perhaps I’m looking at the > wrong control altogether. > > What I’m trying to make is a scroll view containing a vertical stack of > editors for RTF subdocuments. Each of the text vi

Re: system sounds in iOS

2014-12-21 Thread John Joyce
You could try the free download (or in-browser JavaScript version) of a simple sound fx generator called Bfxr at www.bfxr.net > On Dec 21, 2014, at 3:53 AM, Maxthon Chan wrote: > > There is nothing preventing you from pointing a microphone and hitting record > button. If

Bindings and Editing in a row

2015-02-17 Thread John MacMullin
I can’t select any row. So it would appear that some of the table view methods operate independently of the bindings. Where is this documented? Best regards, John MacMullin ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Bindings and Editing in a row

2015-02-18 Thread John MacMullin
methods and with bindings. The other I cannot find in the docs. You would think that these intertwined relationships would be set out in the docs in a tidy fashion. On Feb 17, 2015, at 3:51 PM, Quincey Morris wrote: > On Feb 17, 2015, at 12:35 , John MacMullin wrote: >> >>

Re: Unknown class ‘MyCustomView', using 'NSView' instead

2015-02-22 Thread John Joyce
Why not use a framework ? This is exactly why they exist. To hold resources that can't be in a lib. Xcode 6 makes frameworks easy. Thanks! John Joyce Sent from my iPhone > On 2015/02/22, at 20:17, Erwin Namal wrote: > > Thank you for your reply. > I already use both O

Re: Runtime message on Yosemite seems spurious?

2015-03-19 Thread John Brownie
u can ignore it, and it's probably somewhere in Apple's code. John -- John Brownie, john_brow...@sil.org or j.brow...@sil.org.pg Summer Institute of Linguistics | Mussau-Emira language, Mussau Is. Ukarumpa, Eastern Highlands Province | New Ireland Province Papua New Guinea

Re: Finder not responding to [NSRunningApplication activateWithOptions]

2015-04-08 Thread John Joyce
> On Apr 8, 2015, at 11:38 PM, Ken Thomases > wrote: > > On Apr 8, 2015, at 9:19 AM, Tomáš Znamenáček > wrote: > >> I should have mentioned that Finder behaves unlike other apps in this >> regard. If I do the same with any other a

Re: Yet more new information. Was: Re: Weird UITableView problem

2015-04-30 Thread John Tsombakos
My two cents.. I just tried this on a MacPro, 10.10.3 and Xcode 6 (6.3.1) and no matter which device I run in the simulator and scale factor, i can see all the items in the list. If looking at the iPad Air, thye all fit on the screen without scrolling. Smaller devices I have to scroll the table

Re: static analyzers says I'm leaking, I _think_ I'm not

2015-05-06 Thread John McCall
d it as assign, which means the synthesized setter won’t retain the new value or release the old value. One way of looking at this is that the setter takes its argument at +1 and has a precondition that the property is currently set to nil. Another way of looking at it is that the setter is bugg

Re: Stupid Cocoa question. How can you tell if the object you are looking at is a property or an ivar?

2015-05-21 Thread John McCall
though right now the ivar names are > predictable. That means that performance could be an issue with > autosynthesized properties. The synthesized ivar name algorithm is not an implementation detail. It is fully specified as follows: the compiler prepends a ‘_’

How to debug a binding exception?

2015-06-02 Thread John Brownie
ff9350d5c9 libdyld.dylib`start + 1 My problem is that I don't know what binding would be causing the problem. Is there a way to find out which it is? John -- John Brownie, john_brow...@sil.org or j.brow...@sil.org.pg Summer Institute of Linguistics | Mussau-Emira language, Mussau Is. Uk

Re: How to debug a binding exception?

2015-06-02 Thread John Brownie
___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.co

Another bindings question

2015-06-02 Thread John Brownie
was trial and error, as I haven't really found a good guide to this whole area, so I would be happy to have a better solution. John -- John Brownie, john_brow...@sil.org or j.brow...@sil.org.pg Summer Institute of Linguistics | Mussau-Emira language, Mussau Is. Ukarumpa, Eastern Hig

Re: Another bindings question

2015-06-02 Thread John Brownie
___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.co

Going back to non-ARC

2015-06-12 Thread John Brownie
variables, and I think I should be releasing strong properties. What about IBOutlets that are declared as strong? Do they have to be released as well, or is there some magic in nib handling that makes that unnecessary? Any advice welcome before I go back to testing and looking at leaks, etc. Jo

Re: Going back to non-ARC

2015-06-12 Thread John Brownie
On Fri Jun 12 2015 18:45:49 GMT+1000 (PGT) Ken Thomases wrote: On Jun 12, 2015, at 3:18 AM, John Brownie wrote: Having worked with ARC code for a long while, I discovered an incompatibility with a library that means I have to convert to non-ARC code. Before we address the how, let's

Re: Going back to non-ARC

2015-06-12 Thread John Brownie
On Fri Jun 12 2015 21:11:26 GMT+1000 (PGT) Alex Zavatone wrote: Got a link to the iibrary? https://github.com/refnum/nano/tree/master John -- John Brownie, john_brow...@sil.org or j.brow...@sil.org.pg Summer Institute of Linguistics | Mussau-Emira language, Mussau Is. Ukarumpa, Eastern

Re: Going back to non-ARC

2015-06-13 Thread John Brownie
at earlier memory errors have been fixed by this. Thanks for the pointers that eventually led to a solution. John -- John Brownie, john_brow...@sil.org or j.brow...@sil.org.pg Summer Institute of Linguistics | Mussau-Emira language, Mussau Is. Ukarumpa, Eastern Highlands Province | New Irelan

Re: Swift 2.0

2015-07-02 Thread John Tsombakos
There’s this: The Swift Programming Language (Swift 2 Prerelease) https://itunes.apple.com/us/book/swift-programming-language/id1002622538?mt=11 > On Jul 2, 2015, at 12:59 PM, William Squires wrote: > > There is

Drag highlight problems

2015-07-19 Thread John Brownie
the sequence is, the drag highlight will be left on after the drop happens. The problem seems to be some sort of race condition, but I'm finding it hard to track down. Putting logging in each of the three methods makes the problem go away, so that isn't useful. Am I doing somethi

Drag highlight problems

2015-07-19 Thread John Brownie
ong? I'm on OS X 10.10.4, Xcode 6.4. John -- John Brownie, john_brow...@sil.org or j.brow...@sil.org.pg Summer Institute of Linguistics | Mussau-Emira language, Mussau Is. Ukarumpa, Eastern Highlands Province | New Ireland Province Papua New Guinea

Re: Drag highlight problems

2015-07-20 Thread John Brownie
On Mon Jul 20 2015 20:39:12 GMT+1000 (PGT) Uli Kusterer wrote: On 20 Jul 2015, at 04:36, John Brownie wrote: Everything works correctly except for the drag highlight. Sometimes, and I haven't been able to work out what the sequence is, the drag highlight will be left on after the

Crash in printing

2015-07-30 Thread John Brownie
uce the crash myself, I can't tell what to look for. Any suggestions? John -- John Brownie, john_brow...@sil.org or j.brow...@sil.org.pg Summer Institute of Linguistics | Mussau-Emira language, Mussau Is. Ukarumpa, Eastern Highlands Province | New Ireland Provinc

Re: NSPDFImageRep Memory Leak?

2009-09-08 Thread John Calhoun
-[PDFDocument dataRepresentation] as well. Check the PDFXxx headers, the behavior change is documented there. John Calhoun—___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: Anti-aliasing in Snow Leopard (10.6) PDFView

2009-09-08 Thread John Calhoun
this behavior? John Calhoun—___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription:

Re: Does Mac OS X support interior pointers?

2009-09-08 Thread John Engelhart
On Sun, Sep 6, 2009 at 9:20 PM, Quincey Morris wrote: > On Sep 6, 2009, at 17:36, John Engelhart wrote: > > So, since the Mac OS X documentation uses the term "interior pointer" in a >> totally non-standard way, and I can't find anything wrt/ to what I&#x

KVO can be unsafe in -init?

2009-09-08 Thread John Chang
yet. Though it's unclear why in this particular usage that would be unsafe, or why it would make any difference. Can anyone provide any insight? Thanks, /John Stockholm, Sweden ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: KVO can be unsafe in -init?

2009-09-09 Thread John Chang
that exception. But it's worrisome that we don't understand the root cause. We're thinking of refactoring this class in the future anyway, so this problem could magically go away. Maybe we can just chalk it up to KVO voodoo. Thanks for the responses, /John

Re: KVO can be unsafe in -init?

2009-09-09 Thread John Chang
ly for the purposes of this discussion. -[HighLevelObjectDatabase init] wants to listen to [LowLevelObjectManager sharedManager] and observer any changes there. /John ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin r

Re: CAShapeLayer for Drawing Lines; Animations Skewed

2009-09-10 Thread John Harper
that is just add an extra point with the same coordinates as the end point. John ___ 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

Re: KVO can be unsafe in -init?

2009-09-11 Thread John Chang
ot until iPhone OS starts including "Application Specific Information" like Snow Leopard does. Cheers, /John ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact th

Retaining a NSURL and retaining its -path

2009-09-12 Thread John Love
the 2nd controller did it work. Basic question: if a parent object is retained, why isn't each sibling component object of that parent retained?? John Love Touch the Future! Teach! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) P

Re: KVO can be unsafe in -init?

2009-09-13 Thread John Chang
On 13 sep 2009, at 05.33, Jerry Krinock wrote: I'd be interested to know how John is going to fix this problem. I myself have used the performSelector:withObject:afterDelay:0.0 solution in situations like this I think the problem really only happens wit

Re: How to determine if a PDFPage is image based? (A scanned page)

2009-09-14 Thread John Calhoun
On Sep 13, 2009, at 5:01 AM, DairyKnight wrote: Is there a way to determine if a PDFPage contains only a picture? You could see if NULL is returned for -[PDFPage string]. That sort of indirectly implies an image (or a blank page — or one perhaps with line art only ...). John Calhoun

app delegate +initialize

2009-09-22 Thread John Baldwin
;m missing to get the AppController class loaded and initialized as planned. Could anyone point me in the right direction? John ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: Exit screen saver programmatically?

2009-09-24 Thread John Horigan
If you send the unwanted events to ScreenSaverView parent of your view then it should terminate gracefully. [super theEvent]; -- john On Sep 24, 2009, at 1:14 AM, Gabriel Zachmann wrote: Post a mouse down event and the sceensaver engine will remove it for you. That is a good idea

Remove NSTableView Default Selection

2009-09-24 Thread John McIntosh
message to the table which correctly clears the selection. I assumed that I could send the same deselectAll message in either an awakeFromNib function or applicationDidFinishLaunching. However, neither of these clears the selection. I would greatly appreciate any advice. Thank you. John

Re: Remove NSTableView Default Selection

2009-09-25 Thread John McIntosh
Perfect, thank you! I have the table bound to a core data source and did not know about the "avoid empty selection" option in the controller. Unckecking that box took care of it. John On Thu, Sep 24, 2009 at 10:12 PM, Jens Alfke wrote: > > On Sep 24, 2009, at 5:07 PM, Joh

Creating a radar sweep effect

2009-09-26 Thread John Cebasek
e various documentation, but nothing's jumped out as to what to use). Can someone point me to a URL, sample code or make a (polite) suggestion? Thanks in advance for your time John ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do n

  1   2   3   4   5   6   7   8   9   10   >