Re: Simplest way to produce "tick" system sound?

2021-06-11 Thread Jeremy via Cocoa-dev
System Preferences > Sound > Sound Effects allows users to choose the alert sound they prefer. It won’t necessarily be Tink for all users. If you want to play the sound that a user has chosen, you can use NSBeep() or, in Swift, NSSound.beep() Jeremy — > On 11 Jun 2021, at 15:57

Re: Need for Swift

2019-10-15 Thread Jeremy Hughes via Cocoa-dev
oller) call the RecordViewer to make these changes? It sounds like you actually made quite a bit of progress if you’ve already rewritten the View (V) layers, and the Model (M) layer is separate. Jeremy ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Need for Swift

2019-10-15 Thread Jeremy Hughes via Cocoa-dev
Maybe it’s also worth noting that WebKit (the browser engine used by Safari) is written in C++ Safari’s UI is probably written in Obj-C(++) or a mixture of Obj-C(++) and Swift. Jeremy ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: Thoughts on Cocoa

2019-10-04 Thread Jeremy Hughes via Cocoa-dev
> On 4 Oct 2019, at 11:43, Dragan Milić via Cocoa-dev > wrote: > >> pet 04.10. 2019., at 11.51, Jeremy Hughes via Cocoa-dev wrote: >> >> It wasn’t clear to us (outside Apple) that Carbon was a temporary API until >> 2007, when Apple suddenly abandoned 64-bit C

Re: Thoughts on Cocoa

2019-10-04 Thread Jeremy Hughes via Cocoa-dev
nt. But I don’t think it was easy for small companies with large/complex programs. Personally, I think that Cocoa is a much better framework than Carbon ever was. But I wish that Apple had made it easier to transition from Carbon to Cocoa. Jeremy ___

Re: printing black

2019-01-22 Thread Jeremy Hughes
> On 22 Jan 2019, at 18:23, Alastair Houghton > wrote: > > There’s often a printer setting on users’ printers to tell them to use (just) > black ink. This also shows up in Cocoa Print dialogs under “Printer features” or as a “Greyscale” checkbox. I have it turned on by d

Re: Carbon -> Cocoa

2018-08-17 Thread Jeremy Hughes
in C++, so I think you’re safe with that. I haven’t tried to interface between Swift and C++, but I think it’s possible and will probably get easier. You could ask in the Swift forums. I think ObjC will be around for a while, at least the next ten ye

Re: Carbon -> Cocoa

2018-08-17 Thread Jeremy Hughes
working out for you. Jeremy ___ 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 Subscri

Re: Carbon -> Cocoa

2018-08-16 Thread Jeremy Hughes
e to wait for Marzipan - Apple are dropping support for 32-bit applications after Mojave. Jeremy ___ 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-d

Re: Carbon -> Cocoa

2018-08-16 Thread Jeremy Hughes
We found it very difficult. This was for a large C++ Carbon application. We’re now rewriting in Swift + Cocoa, starting from scratch. Jeremy ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Persistent User Defaults

2018-04-30 Thread Jeremy Hughes
Killing cfprefsd seems unnecessarily drastic. Why not use: defaults delete as Gary Wade mentioned earlier? is a reverse-dns string such as “com.company.appname” — > On 30 Apr 2018, at 15:31, Alex Zavatone wrote: > > Is it worth it (or wise) to zero out preferences and write

Re: Size of compiled NIBs in Xcode 9 (10.13 SDK)

2018-01-24 Thread Jeremy Hughes
deployment target to 10.13 (which you probably don’t want to do) the application icons should no longer be duplicated. They’re currently being duplicated for backwards compatibility with old systems. Jeremy ___ Cocoa-dev mailing list (Cocoa-dev@lists.app

Re: Size of compiled NIBs in Xcode 9 (10.13 SDK)

2018-01-24 Thread Jeremy Hughes
lt with the 10.13 SDK > than when it is built with the 10.12 SDK. > > I don’t know why. > > Jeremy > ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Size of compiled NIBs in Xcode 9 (10.13 SDK)

2018-01-24 Thread Jeremy Hughes
don’t know why. Jeremy ___ 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: Scroll views

2018-01-20 Thread Jeremy Hughes
e" because you don’t logically want the top edge to be pinned to the clip view. (Still, it’s curious that everything still works if the top constraint is not a placeholder.) Jeremy ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Scroll views

2018-01-19 Thread Jeremy Hughes
zontal scrolling). I can’t use autoresizing here because it will create additional constraints that generate conflicts with subview constraints. Jeremy ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mode

Scroll views and autolayout

2018-01-19 Thread Jeremy Hughes
view (or it wouldn’t actually scroll within the clip view) - but I assume that there is some kind of magic that goes on behind the scenes when constraints are added to views that are enclosed within scroll/clip views (although I haven’t seen this discussed anywhere). J

Scroll views

2018-01-19 Thread Jeremy Hughes
sense of this or is it just inherently confusing? Jeremy ___ 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

Re: Pasteboards and NSSecureCoding

2017-12-20 Thread Jeremy Hughes
as going from Swift 3 to Swift 4. I don’t think there's a non-hacky way to upgrade to a new system while continuing to use the previous SDK, but there should be! What I’d like is something similar to Swift transitions: Xcode could issue warnings and make similar helpful suggestions. Jeremy

Re: 10.13 printing problem

2017-12-19 Thread Jeremy Hughes
> On 19 Dec 2017, at 18:03, Jeremy Hughes <moon.rab...@virginmedia.com> wrote: > > I have a problem printing an autolayout view in 10.13.2, and I’m wondering if > there is something wrong with my code or if Apple broke something in 10.13 or > a more recent update. > &

Re: Pasteboards and NSSecureCoding

2017-12-19 Thread Jeremy Hughes
> On 20 Dec 2017, at 02:22, Jeremy Hughes <moon.rab...@virginmedia.com> wrote: > > What I don’t like about [NSArray.self] is that it’s an artefact of bridging. > I’m not actually using it in the encoder: > > coder.encode(arrayOfInts, forKey: kArrayKey) The declaratio

Re: Pasteboards and NSSecureCoding

2017-12-19 Thread Jeremy Hughes
Int] What I don’t like about [NSArray.self] is that it’s an artefact of bridging. I’m not actually using it in the encoder: coder.encode(arrayOfInts, forKey: kArrayKey) Jeremy ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: Pasteboards and NSSecureCoding

2017-12-19 Thread Jeremy Hughes
s. This is an area subject to automatic bridging, so > what you get depends on the exact code used to encode the archive.) The array is saved as an array of Ints, not NSNumbers coder.encode(arrayOfInts, forKey: kArrayKey) Jeremy ___ Cocoa-dev mailing l

Re: Pasteboards and NSSecureCoding

2017-12-19 Thread Jeremy Hughes
y.self] I get an error: Ambiguous reference to member 'decodeObject(of:forKey:)’ I’ve also tried [Array.self], which gives a different error: Cannot invoke 'decodeObject' with an argument list of type '(of: [Array.Type], forKey: String)’ Jeremy ___

Re: Pasteboards and NSSecureCoding

2017-12-19 Thread Jeremy Hughes
, right? Jeremy -- > On 20 Dec 2017, at 01:09, Jeremy Hughes <moon.rab...@virginmedia.com> wrote: > > The release notes for 10.13 say: > > If your application is linked on macOS 10.13 SDK or later, classes that > return NSPasteboardRe

Pasteboards and NSSecureCoding

2017-12-19 Thread Jeremy Hughes
way of doing this that uses Array and Set rather than NSArray and NSSet Jeremy ___ 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)lis

10.13 printing problem

2017-12-19 Thread Jeremy Hughes
versions of 10.13 that I can test on, so I don’t know exactly when this got broken (or changed if it isn’t actually broken). Jeremy ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: Is "-init" really needed?

2017-08-10 Thread Jeremy Hughes
they’re still used by Cocoa APIs (to support ARC and non-ARC code). Jeremy ___ 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)l

Re: Who owns a child view controller?

2017-07-14 Thread Jeremy Hughes
> On 14 Jul 2017, at 14:40, Steve Christensen <puns...@mac.com> wrote: > > On Jul 14, 2017, at 3:50 AM, Jeremy Hughes <moon.rab...@virginmedia.com> > wrote: >> >> I’m still not entirely clear on when autorelease pools are used in Swift. >> There is

Re: Who owns a child view controller?

2017-07-14 Thread Jeremy Hughes
nger hold a retain count. I could be wrong. In addition to autorelease pools there could be other behind-the-scenes mechanisms (caches etc.) that have retain counts. Jeremy ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not p

Re: Who owns a child view controller?

2017-07-14 Thread Jeremy Hughes
> On 12 Jul 2017, at 17:41, Jens Alfke <j...@mooseyard.com> wrote: > >> On Jul 12, 2017, at 9:34 AM, Jeremy Hughes <moon.rab...@virginmedia.com> >> wrote: >> >> // Prints "Why is childReference not nil?” > > There may still be a reference i

Re: Who owns a child view controller?

2017-07-14 Thread Jeremy Hughes
unwrapped optional (var capitalCity: City!) in the example in the Swift book does have to be a strong reference - because otherwise no-one is holding a retain count for capitalCity.] Summarising - but please correct me if I’m wrong: Strong referen

Re: Who owns a child view controller?

2017-07-13 Thread Jeremy Hughes
> On 13 Jul 2017, at 11:26, Jeremy Hughes <moon.rab...@virginmedia.com> wrote: > > So perhaps the difference between safe and unsafe unowned is that safe > unowned generates a runtime error (but doesn’t crash) while unsafe unowned > crashes? Or perhaps they both crash, but

Re: Who owns a child view controller?

2017-07-13 Thread Jeremy Hughes
> On 13 Jul 2017, at 10:57, Jeremy Hughes <moon.rab...@virginmedia.com> wrote: > > Apple’s Swift book says: > > "The examples above show how to use safe unowned references. Swift also > provides unsafe unowned references for cases where you need to disable > r

Re: Who owns a child view controller?

2017-07-13 Thread Jeremy Hughes
> On 13 Jul 2017, at 01:32, Jens Alfke <j...@mooseyard.com> wrote: > >> On Jul 12, 2017, at 2:57 PM, Jeremy Hughes <moon.rab...@virginmedia.com> >> wrote: >> >> I’m trying to understand memory management so I can avoid retain cycles and >>

Re: Who owns a child view controller?

2017-07-12 Thread Jeremy Hughes
by using this property. When you do, the addChildViewController(_:) or removeFromParentViewController() method gets called accordingly Jeremy ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contac

Re: Who owns a child view controller?

2017-07-12 Thread Jeremy Hughes
dViewControllers), my expectation is that I don’t have to release every view controller and view in the hierarchy because they are effectively owned by the top-level view controller. But I don’t have years of Cocoa and ARC experience, so it’s possible that I’m wro

Re: Who owns a child view controller?

2017-07-12 Thread Jeremy Hughes
call into the return-retained convention. So in my original example, autorelease is optimised away when dealing with native Swift objects, but not when dealing with Cocoa objects? Jeremy ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do no

Re: Who owns a child view controller?

2017-07-12 Thread Jeremy Hughes
rformance optimization of > a project that did ref-counting this way.) But an ARC compiler is smart enough to optimise these calls out of existence (in many cases). Jeremy ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: Who owns a child view controller?

2017-07-12 Thread Jeremy Hughes
> On 12 Jul 2017, at 19:25, Jens Alfke <j...@mooseyard.com> wrote: > >> >> On Jul 12, 2017, at 10:57 AM, Jeremy Hughes <moon.rab...@virginmedia.com> >> wrote: >> >> Wouldn’t it be ARC (rather than the consumer) that is balancing retains? > &g

Re: Who owns a child view controller?

2017-07-12 Thread Jeremy Hughes
> On 12 Jul 2017, at 18:38, Charles Srstka <cocoa...@charlessoft.com> wrote: > >> On Jul 12, 2017, at 12:23 PM, Jens Alfke <j...@mooseyard.com> wrote: >> >>> On Jul 12, 2017, at 9:54 AM, Jeremy Hughes <moon.rab...@virginmedia.com> >>>

Re: Who owns a child view controller?

2017-07-12 Thread Jeremy Hughes
ut I guess they’re still there in Cocoa for backwards compatibility with pre-ARC code. Jeremy ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators a

Who owns a child view controller?

2017-07-12 Thread Jeremy Hughes
not nil?") } // Prints "Why is childReference not nil?” Jeremy ___ 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 H

Re: Calculating intrinsicContentSize for a NSTextField

2017-03-18 Thread Jeremy Hughes
fect. Thanks - that works, and the documentation explains why: "Validation sets the object value of the cell to the current contents of the cell’s editor (the NSText object used for editing), storing it as a simple NSString or an attributed string object based on the attributes of the editor.”

Calculating intrinsicContentSize for a NSTextField

2017-03-17 Thread Jeremy Hughes
of calculating the intrinsic content size would be to use: attributedStringValue.boundingRect(with: size, options: .usesLineFragmentOrigin) but this fails to take account of cell insets. Jeremy ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: needsDisplay and subviews

2017-03-10 Thread Jeremy Hughes
> On 9 Mar 2017, at 18:32, corbin dunn <corb...@apple.com> wrote: > >> >> On Mar 8, 2017, at 8:46 AM, Jeremy Hughes <moon.rab...@virginmedia.com> >> wrote: >> >> If needsDisplay is set to true for an NSView, does that also cause subviews

Re: needsDisplay and subviews

2017-03-09 Thread Jeremy Hughes
> On 9 Mar 2017, at 10:24, Jeremy Hughes <moon.rab...@virginmedia.com> wrote: > > So it seems that for layer-backed views, setting needsDisplay does cause the > view to be redrawn - but the value is never actually set. If I needed to work > with layer-backed views, it mig

Re: needsDisplay and subviews

2017-03-09 Thread Jeremy Hughes
” property (similar to “Autoresizes subviews”) that will take away the guesswork and hackery that we currently need to use in order to get some kind of consistent behaviour. Jeremy ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: needsDisplay and subviews

2017-03-08 Thread Jeremy Hughes
drawn - except when “wantsLayer” has been set to true. Does that make sense? Jeremy -- > On 8 Mar 2017, at 17:12, Jeremy Hughes <moon.rab...@virginmedia.com> wrote: > > Thanks - that seems reasonably clear, and it agrees with what I previously > thought, but I’ve got a sit

needsDisplay and subviews

2017-03-08 Thread Jeremy Hughes
If needsDisplay is set to true for an NSView, does that also cause subviews to be redrawn? I’ve seen conflicting statements about this, but haven’t found anything in Apple’s documentation. Jeremy ___ Cocoa-dev mailing list (Cocoa-dev

Re: Binding NSTextField to an array

2017-03-06 Thread Jeremy Hughes
> On 6 Mar 2017, at 17:34, Jeremy Hughes <moon.rab...@virginmedia.com> wrote: > > It all works now. Actually, it works as far as the text field displays “Multiple” (placeholder) for multiple values, but it doesn’t work when I set a value in the text field. In that case I get:

Re: Binding NSTextField to an array

2017-03-06 Thread Jeremy Hughes
Bingo and thanks! I had already found the checkbox for “Selects All When Setting Content" The missing piece of the jigsaw was using “selection" as the Controller Key and “self" as the Model Key Path. It all works now. Jeremy -- > On 6 Mar 2017, at 17:12, Mike Abdullah <

Re: Binding NSTextField to an array

2017-03-06 Thread Jeremy Hughes
field to a single value, but I can’t get it to work with an array of values or with an array controller that is bound to an array of values. Maybe I should give up on using bindings to do this, but it would be good to understand what I’m doing wrong. Jeremy ___

Re: Binding NSTextField to an array

2017-03-06 Thread Jeremy Hughes
y: 0x600070b0> of class _NSControllerObjectProxy Jeremy ___ 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.co

Binding NSTextField to an array

2017-03-06 Thread Jeremy Hughes
_TtGCs23_ContiguousArrayStorageCSo8NSNumber_ How do I bind an NSTextField to an array? Jeremy ___ 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

Re: 12 hr vs 24 hr time display

2017-01-04 Thread Jeremy Pereira
> On 3 Jan 2017, at 16:34, Sandor Szatmari <admin.szatmari@gmail.com> wrote: > > Jeremy, > >> On Jan 3, 2017, at 10:30, Jeremy Pereira >> <jeremy.pere...@aptosolutions.co.uk> wrote: >> >> >>> >> >> It seems obvious

Re: didPrint selector not called

2016-12-16 Thread Jeremy Hughes
> On 16 Dec 2016, at 21:54, Jeremy Hughes <moon.rab...@virginmedia.com> wrote: > >> In that case, you don’t know for sure who calls it and when. It appears to >> documented that it’s called as part of the standard implementation of >> “printDocument”, but you

Re: didPrint selector not called

2016-12-16 Thread Jeremy Hughes
> On 16 Dec 2016, at 21:40, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Dec 16, 2016, at 12:01 , Jeremy Hughes <moon.rab...@virginmedia.com> wrote: >> >> It’s just an application method, which overrides the method that the system >

Re: didPrint selector not called

2016-12-16 Thread Jeremy Hughes
anel: true, delegate: self, didPrintSelector: didPrintSelector, contextInfo: nil) } Is this a general thing? If I want to cast an NSMutableType to a Swift Type I have to cast it to an NSType first? Maybe it's changed in Swift 3 (I’m still on 2.2) b

Re: didPrint selector not called

2016-12-16 Thread Jeremy Hughes
> On 16 Dec 2016, at 20:17, Jeremy Hughes <moon.rab...@virginmedia.com> wrote: >>> I'm not an expert in this part of Cocoa. Are there implicit system >>> *callers* of this method, or is it more of a system *utility* that you're >>> expected to call fro

Re: didPrint selector not called

2016-12-16 Thread Jeremy Hughes
> On 16 Dec 2016, at 20:01, Jeremy Hughes <moon.rab...@virginmedia.com> wrote: > >>> OK - I misunderstood what Quincey was saying. >>> >>> The passed-in delegate and selector are nil, but I obviously can’t be sure >>> that they will alway

Re: didPrint selector not called

2016-12-16 Thread Jeremy Hughes
then maybe instead of > overriding it you should just provide a different method that calls it, doing > whatever set up you need first and then passing in the appropriate delegate > and selector to do cleanup. It’s just an application method, which overrides the method that the syst

Re: didPrint selector not called

2016-12-16 Thread Jeremy Hughes
Also, NSInvocation (used in the release notes sample code) is unavailable in Swift. Jeremy -- > On 16 Dec 2016, at 19:33, Jeremy Hughes <moon.rab...@virginmedia.com> wrote: > >> >> On 16 Dec 2016, at 19:29, John McCall <rjmcc...@apple.com> wrote: >> >

Re: didPrint selector not called

2016-12-16 Thread Jeremy Hughes
> On 16 Dec 2016, at 19:29, John McCall <rjmcc...@apple.com> wrote: > >> On Dec 16, 2016, at 11:24 AM, Jeremy Hughes <moon.rab...@virginmedia.com> >> wrote: >> Thanks for the link. >> >> I’ve looked at it, and I don’t think it applies in th

Re: didPrint selector not called

2016-12-16 Thread Jeremy Hughes
can call through to. I suppose it would apply if I had a subclass (of my document class) that needed to override the callback. Does that seem right to you? Jeremy -- > On 16 Dec 2016, at 18:26, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Dec 16, 2016,

Fwd: didPrint selector not called

2016-12-16 Thread Jeremy Hughes
Sorry - I forgot to copy to the list. Jeremy -- > Begin forwarded message: > > From: Jeremy Hughes <moon.rab...@virginmedia.com> > Subject: Re: didPrint selector not called > Date: 16 December 2016 at 19:15:10 GMT > To: John McCall <rjmcc...@apple.com> >

didPrint selector not called

2016-12-16 Thread Jeremy Hughes
tInfo:)) super.printDocumentWithSettings(printSettings, showPrintPanel: showPrintPanel, delegate: delegate, didPrintSelector: didPrint, contextInfo: contextInfo) } Does anyone know why this doesn’t work? Jeremy ___ Cocoa-dev mailing list (Cocoa-dev@lists.appl

Re: file url to string path

2013-11-22 Thread Jeremy Pereira
On 21 Nov 2013, at 00:01, Kyle Sluder k...@ksluder.com wrote: On Wed, Nov 20, 2013, at 03:26 PM, koko wrote: How does one turn this: file://localhost/Volumes/Macintosh%20HD/Included%20Free%20Designs/Aibnb18(colorized).pes http://lmgtfy.com/?q=NSURL Which leads you, via an enormous list

NSUserNotification + Custom Icon?

2013-11-12 Thread Jeremy Matthews
/Screen_Shot_2013_10_30_at_2_09_03_PM.png Any ideas on a workaround? Thanks, jeremy ___ 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

Re: Helper tool

2013-09-13 Thread Jeremy Matthews
I'm getting prepped for writing few of those...any good sample code out there? I was having some issues compiling Apple sample code from a version of Xcode that shall not be named...throwing bizarre errors. Figured I'd start with some sane, validated goodness. Thanks, j

Re: Dismissing Open dlog before doc actually opens

2013-08-14 Thread Jeremy Hughes
dialogs - you can't do anything in other documents while the Open dialog is displayed. I'm running Snow Leopard, so maybe things are different in Mountain Lion - but Snow Leopard is a long way from System 7. Jeremy ___ Cocoa-dev mailing list (Cocoa

Re: How to implement readonly property

2012-12-07 Thread Jeremy Pereira
On 12 Nov 2012, at 20:45, Greg Parker gpar...@apple.com wrote: There is something special about statically-allocated memory. Statically-allocated memory has always been zero for the life of the process. Dynamically-allocated memory may have been non-zero at some point in the past

SMJobBless

2012-04-26 Thread Jeremy Matthews
, jeremy ___ 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

Calendar heatmap-ness ala iCal

2012-04-02 Thread Jeremy Matthews
? Thanks, jeremy ___ 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

Re: iCal Integration

2012-02-24 Thread Jeremy Matthews
Awesome, I'll check it out! Thanks Jeremy Sent from my iPhone On Feb 24, 2012, at 4:42 AM, John Maisey j...@nhoj.co.uk wrote: I also don't think this is in the API. The relevant information is stored in the Info.plist file for each calendar. The keys are 'EventContainer

iCal Integration

2012-02-23 Thread Jeremy Matthews
, a better solution altogether? Thanks, jeremy ___ 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

Re: Overwhelming Options

2011-09-02 Thread Jeremy Hughes
checkboxes. ... which is what you get if you choose View Options from the iTunes View menu. Jeremy ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Re: Overwhelming Options

2011-09-01 Thread Jeremy Matthews
It's an internal app for power users...and its been a struggle to reduce it so far. I've been told that the current options need to stay putso no reducing for the moment. ...but I don't like it either... Thanks, j On Sep 1, 2011, at 1:51 PM, Jens Alfke wrote: On Sep 1, 2011, at 9:58

Re: Overwhelming Options

2011-09-01 Thread Jeremy Matthews
really work. So when I make significant changes its not usually a good thing...so I may be fighting a losing battle anyhow. Thanks again, jeremy On Sep 1, 2011, at 4:42 PM, Quincey Morris wrote: On Sep 1, 2011, at 11:48 , Jeremy Matthews wrote: It's an internal app for power users

crash in ThemeTextRelease

2011-06-04 Thread Jeremy Todd
use of NSMenu is suspect (we build and rebuild our app's menus quite often) so we'll certainly take a closer look there. Regards, Jeremy ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Read Protected File

2011-02-04 Thread Jeremy Matthews
other examples just to make sure I'm doing things properly... Thanks, jeremy smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

lots of find/replace in text file

2011-01-22 Thread Jeremy Matthews
So...the app I previously mentioned, ala Mad Libs...I now have lots more text to replace within the file (new additions). Besides using find/replace using NSScanner and NSStrings' stringByReplacingOccurrencesOfStringis there a better way, to perform a slew of find/place operations with a

Store a file vs create on the fly?

2011-01-18 Thread Jeremy Matthews
So I have a simple app which, in essence, creates a text file with some items determined by the user (kind of like an old-fashioned Mad Libs page). Most of the file does not change...I just change a few portions based upon checkbox states, textfield contents, etc. Question is: should I have

Multiple File Open Strategy

2010-12-28 Thread Jeremy Torres
Hello. I have a working implementation using Grand Central dispatch queues that open a file and compute an OpenSSL DSA hash, writing out the hash to a new side car file for later verification. I would like to open multiple files at the same time, but based on some logic that doesn't choke the

Re: Subclasses, protocols and properties - compiler warning

2010-11-19 Thread Jeremy Pereira
On 19 Nov 2010, at 14:38, Jonny Taylor wrote: I am encountering what I believe to be a spurious compiler warning. I wonder whether this is a clue that I am doing something differently to how I should do it. The problem comes if I define a protocol containing a property and then define

SRV record lookup

2010-10-08 Thread Jeremy Matthews
://stackoverflow.com/questions/258284/srv-record-lookup-with-iphone-sdk Thanks, jeremy smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: Core data: Inverse relationships with subclasses

2010-09-29 Thread jeremy
If your data store is SQLite, I believe the problem is the subclass FooSub. Since FooSub is a subclass of Foo, CoreData combines both Foo and FooSub into a single table whose columns include all properties from Foo AND FooSub. Consequently, when you create a new instance of Foo, columns from

SCPreferencesLock issue?

2010-09-17 Thread Jeremy Matthews
For some reason, I can't seem to get a lockwas wondering if anyone else has been here before: AuthorizationRef auth = nil; OSStatus authErr = noErr; AuthorizationFlags rootFlags = kAuthorizationFlagDefaults | kAuthorizationFlagExtendRights |

Re: SCPreferencesLock issue?

2010-09-17 Thread Jeremy Matthews
, Jeremy Matthews wrote: For some reason, I can't seem to get a lockwas wondering if anyone else has been here before: I haven't dealt with this API before, but the below code is a mess. You also don't explain what you mean by I can't seem to get a lock. The logging statements

OT: Back To School

2010-09-14 Thread Jeremy Matthews
they benefitted from. Thanks, jeremy ___ 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

Can I connect?

2010-09-04 Thread Jeremy Matthews
In my application (desktop) I am checking for a network connection, and I've seen people use a few different techniques... 1) NSURL 2) SCNetworkReachabaility 3) NSSocketPort Anyone have experience or best practices on using one vs another? Thanks, j

Re: settings computer name, host name, local host name

2010-08-07 Thread Jeremy Matthews
Stephen, Thanks - I had just dipped into the framework to get info, but the SCPrefs are definitely a little more work..funny thing about NSHot is that most the methods are deprecatedbummer. -j On Aug 6, 2010, at 10:52 PM, Stephen J. Butler wrote: On Fri, Aug 6, 2010 at 4:22 PM, Jeremy

settings computer name, host name, local host name

2010-08-06 Thread Jeremy Matthews
So, I know there are a number of ways to GET computer name, local host name, and host name (this one only by scutil??) - is there a method folks out there are using to SET each of these? Other than NSTask and scutil??? Thanks, j ___ Cocoa-dev mailing

NewStyle Preferences

2010-06-20 Thread Jeremy Matthews
are doing these days... I was wondering about the experiences out there...and any best practices recommendations. I see a lot of projects using the last method, and using code more than IB to put it together - love to know what people are using out there! Thanks, jeremy

Re: How to specify the superview in the Interface Builder?

2010-06-04 Thread jeremy
Would you provide some additional information: 1) Is the IB designed custom view in MainWindow.xib or is it in its own nib file? 2) Did you create a custom view controller class to manage the screen full of content shown in the custom view? On Jun 4, 2010, at 12:53 PM, ico wrote: I have

Mail Frameworks

2010-06-02 Thread Jeremy Matthews
through headers and trying to figure what works and what doesn't. Is anyone using either of these for attachments? Any opinions on one or the other? Something else? Thanks, jeremy ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Mail Frameworks

2010-06-02 Thread Jeremy Matthews
Mac OS... Sent from my iPhone On Jun 2, 2010, at 3:25 PM, Laurent Cerveau lcerv...@me.com wrote: Is this on MacOS or iPhoneOS? I think the way to go on MacOS is through the scripting bridge laurent Sent from my road phone On Jun 2, 2010, at 8:57 PM, Jeremy Matthews jeremymatth

swipe gestures

2010-05-16 Thread Jeremy Matthews
So I'm working them into my app, and I noticed that I can't seem to use them in order to select a tabviewitem, but I can appear to do other things (logging, alerts, etc)? I checked my IBOutlets and everything is kosher there... Is there a limitation here I am unaware of? I can use tabviewitem

Re: How to empty the Trash programmatically?

2010-04-16 Thread Jeremy Pereira
On 16 Apr 2010, at 08:22, Graham Cox wrote: Don't. The only app that the user wants to empty the trash is Finder, not yours. If they want it emptied (or emptied securely), they'll go to the Finder and use the menu there. It's OK for your app to move stuff to the trash as long as it's

Re: How to empty the Trash programmatically?

2010-04-16 Thread Jeremy Pereira
On 16 Apr 2010, at 10:29, Matt Gough wrote: On 16 Apr 2010, at 09:46:27, Jeremy Pereira wrote: On 16 Apr 2010, at 08:22, Graham Cox wrote: Don't. The only app that the user wants to empty the trash is Finder, not yours. If they want it emptied (or emptied securely), they'll go

  1   2   3   >