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
ller) 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.c

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
point. 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
tten 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 t

Re: Carbon -> Cocoa

2018-08-17 Thread Jeremy Hughes
ing 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
ve time 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

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 them prior to

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

2018-01-24 Thread Jeremy Hughes
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.apple.com) Please

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
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 moderator comments to the list. Contact the moderators

Scroll views and autolayout

2018-01-19 Thread Jeremy Hughes
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. J

Re: 10.13 printing problem

2017-12-19 Thread Jeremy Hughes
> On 19 Dec 2017, at 18:03, Jeremy Hughes 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. > > I’m using the same view class fo

Re: Pasteboards and NSSecureCoding

2017-12-19 Thread Jeremy Hughes
> On 20 Dec 2017, at 02:22, Jeremy Hughes 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 declaration: encode(_ object: Any?, forKey key:

Re: Pasteboards and NSSecureCoding

2017-12-19 Thread Jeremy Hughes
] 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 do not post admin requests or moderator comm

Re: Pasteboards and NSSecureCoding

2017-12-19 Thread Jeremy Hughes
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 list (Cocoa-dev@lists.apple.com) Please do

Re: Pasteboards and NSSecureCoding

2017-12-19 Thread Jeremy Hughes
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 ___ Cocoa-d

Re: Pasteboards and NSSecureCoding

2017-12-19 Thread Jeremy Hughes
lizer, right? Jeremy -- > On 20 Dec 2017, at 01:09, Jeremy Hughes wrote: > > The release notes for 10.13 say: > > If your application is linked on macOS 10.13 SDK or later, classes that > return NSPasteboardReadingAsKeyedArchive from > readingOptionsForType:pasteboard:

Pasteboards and NSSecureCoding

2017-12-19 Thread Jeremy Hughes
ould be a 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-de

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
refore, +new is >> better for performance. > > Not with ARC they don’t. The ARC logic circumvents the autorelease pool in > that case. Are you sure? We had a discussion about autorelease pools recently, and it seems that they’re still used by Cocoa AP

Re: Who owns a child view controller?

2017-07-14 Thread Jeremy Hughes
> On 14 Jul 2017, at 14:40, Steve Christensen wrote: > > On Jul 14, 2017, at 3:50 AM, Jeremy Hughes > wrote: >> >> I’m still not entirely clear on when autorelease pools are used in Swift. >> There is a WWDC video which says that they’re used in code that interf

Re: Who owns a child view controller?

2017-07-14 Thread Jeremy Hughes
in 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 post admin requests

Re: Who owns a child view controller?

2017-07-14 Thread Jeremy Hughes
> On 12 Jul 2017, at 17:41, Jens Alfke wrote: > >> On Jul 12, 2017, at 9:34 AM, Jeremy Hughes >> wrote: >> >> // Prints "Why is childReference not nil?” > > There may still be a reference in the autorelease pool. Check childReference > again ‘la

Re: Who owns a child view controller?

2017-07-14 Thread Jeremy Hughes
) 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 references (no qualifier) can be optional or non-optional Weak references (weak qualifier) must b

Re: Who owns a child view controller?

2017-07-13 Thread Jeremy Hughes
> On 13 Jul 2017, at 11:26, Jeremy Hughes 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 unowned(unsafe) gives a more h

Re: Who owns a child view controller?

2017-07-13 Thread Jeremy Hughes
> On 13 Jul 2017, at 10:57, Jeremy Hughes 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 > runtime safety checks—for example, f

Re: Who owns a child view controller?

2017-07-13 Thread Jeremy Hughes
> On 13 Jul 2017, at 01:32, Jens Alfke wrote: > >> On Jul 12, 2017, at 2:57 PM, Jeremy Hughes >> wrote: >> >> I’m trying to understand memory management so I can avoid retain cycles and >> other issues. > > That’s fine. But using a weak refe

Re: Who owns a child view controller?

2017-07-12 Thread Jeremy Hughes
u 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. Contact the moderator

Re: Who owns a child view controller?

2017-07-12 Thread Jeremy Hughes
t 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 wrong. Hence the reasoning. Jeremy __

Re: Who owns a child view controller?

2017-07-12 Thread Jeremy Hughes
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 not post admin requests or mod

Re: Who owns a child view controller?

2017-07-12 Thread Jeremy Hughes
f > 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 post admin requests or moderator

Re: Who owns a child view controller?

2017-07-12 Thread Jeremy Hughes
> On 12 Jul 2017, at 19:25, Jens Alfke wrote: > >> >> On Jul 12, 2017, at 10:57 AM, Jeremy Hughes >> wrote: >> >> Wouldn’t it be ARC (rather than the consumer) that is balancing retains? > > Yes. ARC internally generates calls to -autorelease

Re: Who owns a child view controller?

2017-07-12 Thread Jeremy Hughes
> On 12 Jul 2017, at 18:38, Charles Srstka wrote: > >> On Jul 12, 2017, at 12:23 PM, Jens Alfke wrote: >> >>> On Jul 12, 2017, at 9:54 AM, Jeremy Hughes >>> wrote: >>> >>> I’d forgotten about autorelease pools - but I guess they’re stil

Re: Who owns a child view controller?

2017-07-12 Thread Jeremy Hughes
ill 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 at cocoa-dev-admins(at)lists.app

Who owns a child view controller?

2017-07-12 Thread Jeremy Hughes
t 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
nd 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.” Jeremy _

Calculating intrinsicContentSize for a NSTextField

2017-03-17 Thread Jeremy Hughes
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 wrote: > >> >> On Mar 8, 2017, at 8:46 AM, Jeremy Hughes >> wrote: >> >> If needsDisplay is set to true for an NSView, does that also cause subviews >> to be redrawn? >> >> I’ve seen conflictin

Re: needsDisplay and subviews

2017-03-09 Thread Jeremy Hughes
> On 9 Mar 2017, at 10:24, Jeremy Hughes 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 might be possible to get around this b

Re: needsDisplay and subviews

2017-03-09 Thread Jeremy Hughes
views”) 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 not post admin requests or moderator comments

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 wrote: > > Thanks - that seems reasonably clear, and it agrees with what I previously > thought, but I’ve got a situation where it doesn’t see

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 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: Error setting value for

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 Abdulla

Re: Binding NSTextField to an array

2017-03-06 Thread Jeremy Hughes
e, 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 ___ Coc

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(at

Re: 12 hr vs 24 hr time display

2017-01-04 Thread Jeremy Pereira
> On 3 Jan 2017, at 16:34, Sandor Szatmari wrote: > > Jeremy, > >> On Jan 3, 2017, at 10:30, Jeremy Pereira >> wrote: >> >> >>> >> >> It seems obvious to me that method 1 only refers to the clock display in the >> menu bar

Re: didPrint selector not called

2016-12-16 Thread Jeremy Hughes
> On 16 Dec 2016, at 21:54, Jeremy Hughes 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 don’t know if there are other circ

Re: didPrint selector not called

2016-12-16 Thread Jeremy Hughes
> On 16 Dec 2016, at 21:40, Quincey Morris > wrote: > > On Dec 16, 2016, at 12:01 , Jeremy Hughes wrote: >> >> It’s just an application method, which overrides the method that the system >> calls from printDocument when a user chooses Print. > > Jus

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

Re: didPrint selector not called

2016-12-16 Thread Jeremy Hughes
> On 16 Dec 2016, at 20:17, Jeremy Hughes 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 from your own code? If it&

Re: didPrint selector not called

2016-12-16 Thread Jeremy Hughes
> On 16 Dec 2016, at 20:01, Jeremy Hughes 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 always be nil. >>> >>> Al

Re: didPrint selector not called

2016-12-16 Thread Jeremy Hughes
;s the latter, 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 metho

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 wrote: > >> >> On 16 Dec 2016, at 19:29, John McCall wrote: >> >>> On Dec 16, 2016, at 11:24 AM, Jeremy Hughes &

Re: didPrint selector not called

2016-12-16 Thread Jeremy Hughes
> 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’t think it applies in this case, because I’m >> not actually overriding the docu

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 > wrote: > > On Dec 16, 2016, at 08:45 , Jeremy Hughes wrote: >>

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 > Subject: Re: didPrint selector not called > Date: 16 December 2016 at 19:15:10 GMT > To: John McCall > >> On 16 Dec 2016, at 17:24, John McCall wrote: >>

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 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 to the -

NSUserNotification + Custom Icon?

2013-11-12 Thread Jeremy Matthews
s21.postimg.org/voqq33vd3/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 moderato

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
3.2.6) have modal Open 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 ___

Re: How to implement readonly property

2012-12-07 Thread Jeremy Pereira
On 12 Nov 2012, at 20:45, Greg Parker 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 > (i.e. if it was

SMJobBless

2012-04-26 Thread Jeremy Matthews
hanks, 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:

Calendar heatmap-ness ala iCal

2012-04-02 Thread Jeremy Matthews
ideas? 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:

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 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 'Even

iCal Integration

2012-02-23 Thread Jeremy Matthews
d finding out the hard way? Or perhaps, 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)lis

Re: Overwhelming Options

2011-09-02 Thread Jeremy Hughes
be an array of 39 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 th

Re: Overwhelming Options

2011-09-01 Thread Jeremy Matthews
e"...which doesn't 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&#x

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:5

Overwhelming Options

2011-09-01 Thread Jeremy Matthews
I have an app with some groups of checkboxes...and it really takes up too much space in the UI. It is a utility app, but it has about 7 different matricies of about 6 checkboxes eachso lots of options...and it can be overwhelming at times. I'd like to design a better UI so as to not take up

crash in ThemeTextRelease

2011-06-04 Thread Jeremy Todd
cause? It seems like our 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 a

Read Protected File

2011-02-04 Thread Jeremy Matthews
t I'd love some 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 moder

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 tex

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 that

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"

Grand Central Strategy for Opening Multiple Files

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"

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 defin

SRV record lookup

2010-10-08 Thread Jeremy Matthews
http://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

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 Foo

Re: SCPreferencesLock issue?

2010-09-17 Thread Jeremy Matthews
AM, 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

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 | kAuthori

OT: Back To School

2010-09-13 Thread Jeremy Matthews
felt 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 Su

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, Jer

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
to see what people 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 th

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 cr

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 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 wrote: So...I'm working

Mail Frameworks

2010-06-02 Thread Jeremy Matthews
am reading 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) Ple

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 se

  1   2   3   >