Re: Screensaver running only on one display with a multiple display setup

2023-06-12 Thread Steven Mills via Cocoa-dev
On Jun 10, 2023, at 12:45, Gabriel Zachmann via Cocoa-dev wrote: > > Two of the instances never reach method -viewDidMoveToWindow. > > Is there a way to instrument the source code or the executable, such that I > can receive a line-by-line trace of the execution of the three screensaver > ins

Re: Retrieving the EXIF date/time from 250k images

2023-01-16 Thread Steven Mills via Cocoa-dev
On Jan 16, 2023, at 00:52, Gabriel Zachmann via Cocoa-dev wrote: > > I had thought of that , too. > The reason is that I have no experience whatsoever with the JPEG file format. > Nor with the EXIF file format. > Also, I need to be able to parse at least JPEG, PNG, TIF, GIF, and I'd like > to a

Re: Mystery interference with AirPlay

2022-06-15 Thread Steven Mills via Cocoa-dev
On Jun 15, 2022, at 03:44:41, Gabriel Zachmann via Cocoa-dev wrote: > Making matters worse, I don't have AirPlay. Everybody has Airplay. It's a feature, not a thing. -- Steve Mills Drummer, Mac geek ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple

Re: Programmatically created NSButton is drawn in the wrong position.

2020-12-15 Thread Steven Mills via Cocoa-dev
On Dec 15, 2020, at 04:49:19, Eyal Redler via Cocoa-dev wrote: > > setting translatesAutoresizingMaskIntoConstraints to yes makes the situation > worse. The buttons are drawn further away than their frames indicate. Are you using Xcode's Interface Debugger to inspect the entire view hierarchy

Re: How can I get horizontal scrollbars adequate to the widest list entry

2020-11-11 Thread Steven Mills via Cocoa-dev
On Nov 11, 2020, at 10:13:35, Andreas Falkenhahn wrote: > > Yeah, but size.width is 0 too so something must be wrong in that code... Does it even have a superview at that point? I kinda think it doesn't, because the method you're in is supposed to return the cell view that the table will then

Re: How can I get horizontal scrollbars adequate to the widest list entry

2020-11-11 Thread Steven Mills via Cocoa-dev
On Nov 11, 2020, at 09:38:37, Andreas Falkenhahn wrote: > > > Ok, but how can I get those distances? I've tried the following: > >NSView *view = [tableView viewAtColumn:0 row:idx makeIfNecessary:YES]; >NSRect bounds = [view bounds]; > > But bounds.origin.x and bounds.size.width are alw

Re: How can I get horizontal scrollbars adequate to the widest list entry

2020-11-11 Thread Steven Mills via Cocoa-dev
On Nov 11, 2020, at 08:54:02, Andreas Falkenhahn via Cocoa-dev wrote: > > However, this still isn't perfect because the last two characters of the > widest entry are still cut off and replaced by "...". Of course, I can solve > this by just adding something a few points to size.width but of co

Re: Missing log output

2020-11-09 Thread Steven Mills via Cocoa-dev
On Nov 9, 2020, at 08:10:16, Gabriel Zachmann via Cocoa-dev wrote: > > In more details, my app (written in Swift) logs info using NSLog, like so: > > NSLog( "App group container: %@", container_group_url_!.path ) > > I asked the user to extract the log message using this command in the > Te

Re: How to parse a log file

2020-10-27 Thread Steven Mills via Cocoa-dev
On Oct 27, 2020, at 00:54:40, Rob Petrovec wrote: > > While I agree this would be a good thing to have, I don’t see how Xcode > could find the dSYM to use given that they are typically ephemeral. The dSYM > is tied to the build. So if you build your project twice you will have two > di

Re: How to parse a log file

2020-10-26 Thread Steven Mills via Cocoa-dev
> On Oct 26, 2020, at 17:49:59, James Walker via Cocoa-dev > wrote: > > I don't see any "Download Debug Symbols" in the Organizer. I don't think it > exists for macOS apps. > > However, one can right-click on an archive and select "Show In Finder", then > once in Finder right-click again a

Re: CIImage initWithCGLayer is deprecated in 10.11

2016-06-11 Thread Steven Spencer
From CIImage.h: - (instancetype)initWithCGLayer:(CGLayerRef)layer NS_DEPRECATED_MAC(10_4,10_11,"Use initWithCGImage: instead."); - (instancetype)initWithCGLayer:(CGLayerRef)layer options:(nullable CI_DICTIONARY(NSString*,id) *)options NS_DEPRECATED_MAC(10_4,10_11,"U

Re: Can scroll direction be changed programmatically?

2013-05-09 Thread Steven Degutis
Kinda like https://github.com/invariant/Scroll-Reverser ? Someone showed me this and I glanced at the source code, and was not fond of this technique. On Thu, May 9, 2013 at 7:26 PM, Uli Kusterer wrote: > On 09.05.2013, at 20:55, Steven Degutis wrote: >> I found a solution using Appl

Re: Can scroll direction be changed programmatically?

2013-05-09 Thread Steven Degutis
;d probably have to kill "loginwindow" or something to get the OS to register that I changed this. And that seems like a dumb idea. -Steven ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Can scroll direction be changed programmatically?

2013-05-09 Thread Steven Degutis
I found a solution using AppleScript[1] but it seems like it may be fragile (uses magic numbers, etc). Is there another way? -Steven [1] http://apple.stackexchange.com/questions/60877/toggle-natural-scrolling-from-command-line-with-reload ___ Cocoa

Re: Wanted: new owner for Mac apps

2013-05-09 Thread Steven Degutis
Alex, I think my favorite part of your response is that, what I said wasn't something to be vaguely recalled, a lost moment enveloped in a foggy memory, a fragment of a conversation hopelessly swallowed by the past. There was no reason to settle for remembering "something to the effect of" it. On

Re: Wanted: new owner for Mac apps

2013-05-08 Thread Steven Degutis
Alex, does this mean you aren't gonna buy me a PaintCode license out of gratitude? Dang. :( On Wed, May 8, 2013 at 7:25 PM, Alex Zavatone wrote: > > On May 8, 2013, at 8:17 PM, Luther Baker wrote: > >> Steve's entire thread was about giving away his source code -- he even keeps >> us up to date

Re: Wanted: new owner for Mac apps

2013-05-08 Thread Steven Degutis
that they might want to fork one sooner than later. The part about permanence being an illusion? Maybe a bit melancholy, but certainly not snippy. -Steven On Wed, May 8, 2013 at 9:17 AM, Alex Zavatone wrote: > > On May 8, 2013, at 1:14 AM, Steven Degutis wrote: > >> It's funny h

Re: Wanted: new owner for Mac apps

2013-05-07 Thread Steven Degutis
It's funny how when you say "in order of" but omit the direction, people have different assumptions: https://github.com/biohazardffm/grs/network/members On Tue, May 7, 2013 at 1:37 PM, Steven Degutis wrote: > Update: > > The original repo has been deleted. > > Tak

Re: Wanted: new owner for Mac apps

2013-05-07 Thread Steven Degutis
One more thing: If you end up doing something cool with any of these apps, please let me know. I'm kinda nerdy so I like hearing about that kinda stuff. On Tue, May 7, 2013 at 8:54 AM, Steven Degutis wrote: > These ones: https://github.com/sdegutis/grs > > They're a lovel

Re: Showing numpad key equivs in menu items

2013-05-07 Thread Steven Degutis
technique that > might accomplish it. But I also offered a reasoned rationale for why > carrying that forward *might* not be the best use of your efforts. You > reacted with snide hostility to a polite and sincere attempt to help you > make your software as good as it could be. Th

Re: Main Window Disappears when Loaded from Separate NIB File

2013-05-07 Thread Steven Degutis
ARC is on. Retain the window controller. On Tue, May 7, 2013 at 4:52 PM, Thomas Wetmore wrote: > I hope someone can put me straight. I created a vanilla Cocoa App. I deleted > the window from the MainMenu.xib and created a MainWindow.xib with > essentially an identical window (no views). > > I

Re: Wanted: new owner for Mac apps

2013-05-07 Thread Steven Degutis
you'll have learned sooner than later that permanence is an illusion. -Steven On Tue, May 7, 2013 at 8:54 AM, Steven Degutis wrote: > These ones: https://github.com/sdegutis/grs > > They're a lovely little set of Mac apps. Most of them are on the App > Store, and with a

Re: Wanted: new owner for Mac apps

2013-05-07 Thread Steven Degutis
ke one. > > Sent from my iPhone > > On May 7, 2013, at 9:54 AM, Steven Degutis wrote: > >> These ones: https://github.com/sdegutis/grs >> >> They're a lovely little set of Mac apps. Most of them are on the App >> Store, and with absolutely no marketi

Re: Wanted: new owner for Mac apps

2013-05-07 Thread Steven Degutis
Okay, the apps are removed from the App Store. Have at it. On Tue, May 7, 2013 at 10:42 AM, Steven Degutis wrote: > Also, sorry about the unfinished sentence at the end, it happened because > > On Tue, May 7, 2013 at 8:54 AM, Steven Degutis wrote: >> These ones: https://github.c

Re: Wanted: new owner for Mac apps

2013-05-07 Thread Steven Degutis
Also, sorry about the unfinished sentence at the end, it happened because On Tue, May 7, 2013 at 8:54 AM, Steven Degutis wrote: > These ones: https://github.com/sdegutis/grs > > They're a lovely little set of Mac apps. Most of them are on the App > Store, and with absolutely no

Re: Wanted: new owner for Mac apps

2013-05-07 Thread Steven Degutis
https://twitter.com/trptcolin/status/309324069134794755 - Plus the App Store reviews that I put in the readme file -Steven On Tue, May 7, 2013 at 10:09 AM, Scott Andrew wrote: > Hmmm. Wonder how long they'll last. Can you do me a bit of research. See if > you can find reviews on these

Re: Wanted: new owner for Mac apps

2013-05-07 Thread Steven Degutis
od to go. 4. Found some stray reviews from a few months ago. Put them in the README for easy finding. 5. Trying to figure out how to take apps down from the Mac App Store, once they're down I'll ping the final pong to this list. -Steven On Tue, May 7, 2013 at 9:32 AM, Steven Degutis wro

Re: Wanted: new owner for Mac apps

2013-05-07 Thread Steven Degutis
Ok. On Tue, May 7, 2013 at 9:38 AM, Tom von Schwerdtner wrote: > On Tue, May 7, 2013 at 9:54 AM, Steven Degutis wrote: >> >> These ones: https://github.com/sdegutis/grs >> >> (...) >> >> For the curious, I'm giving them away because >> &

Re: Wanted: new owner for Mac apps

2013-05-07 Thread Steven Degutis
Also, I've just updated the README to include all sorts of pertinent information. Please consult it for important details on each app. On Tue, May 7, 2013 at 9:08 AM, Steven Degutis wrote: > Alternatively, anyone and everyone is welcome to fork these apps, or > do whatever you wan

Re: Wanted: new owner for Mac apps

2013-05-07 Thread Steven Degutis
Alternatively, anyone and everyone is welcome to fork these apps, or do whatever you want with them. I'm releasing all of that repo under the MIT license. Give them away for free, sell them, whatever, I don't care. On Tue, May 7, 2013 at 8:54 AM, Steven Degutis wrote: > Thes

Wanted: new owner for Mac apps

2013-05-07 Thread Steven Degutis
u can put them up. For the curious, I'm giving them away because -Steven ___ 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: Showing numpad key equivs in menu items

2013-05-06 Thread Steven Degutis
Part of the territory. Apple "knows better than you", thus so do its fanboys. On Mon, May 6, 2013 at 10:20 PM, Steve Mills wrote: > On May 6, 2013, at 16:58:10, gweston wrote: > >> In light of the great opportunity for user confusion - because a little >> rectangle around the number is hardly a

Re: Enable Unique Selection

2013-05-03 Thread Steven Degutis
Personally I would just use the value transformer approach. It's easy, obvious, and discoverable. Any other solution I can think up with would be lacking in at least one of these. I actually find value transformers to be super helpful when working with bindings. I've used one for an empty string (t

Re: Is FSEvents more efficient than polling?

2013-04-28 Thread Steven Degutis
thing I would consider, as you're talking > about reading, which should be considered harmless (in the physical sense, > not the performance point of view) > > -Michael > > On 28.04.2013, at 19:43, Steven Degutis wrote: > >> There is a library I'm using

Is FSEvents more efficient than polling?

2013-04-28 Thread Steven Degutis
other way? Thanks. -Steven ___ 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: ^Block statement considered harmful for callbacks?

2013-04-25 Thread Steven Degutis
Using blocks with ARC just requires more discipline, that's all. It isn't to be avoided, just carefully thought about at the appropriate times. On Thu, Apr 25, 2013 at 6:07 AM, Oleg Krupnov wrote: > The compiler indeed warns, but only for ARC projects, and for non-ARC > projects it perfectly all

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

2013-04-18 Thread Steven Degutis
github.com/sdegutis/windowsapp/wiki/AppGrid-config [3] http://giantrobotsoftware.com/appgrid [4] https://github.com/sdegutis/home/blob/master/.windowsapp.coffee#L13 -Steven On Thu, Apr 18, 2013 at 7:21 PM, Graham Cox wrote: > Fantastic! What does it do? > > --Graham > > > On 18

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

2013-04-18 Thread Steven Degutis
True, but I'm confident they don't care. :) On Thu, Apr 18, 2013 at 1:00 AM, Charles Srstka wrote: > On Apr 17, 2013, at 11:44 AM, Steven Degutis wrote: > > Called Windows.app. > > > ... I think someone may have used the name &quo

ANN: new open-source window manager for OS X

2013-04-17 Thread Steven Degutis
My apologies if new-app announcements are off-topic, but I think this one is particularly suitable for cocoa-dev because of the technical details. -Steven ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comm

Re: Apple Aperture-like look & feel

2012-08-18 Thread Steven Woolgar
otool is your friend when you want to find these things out. Aperture, Logic and the other Apple Pro apps use a framework called ProKit. It is internal and private. See: /System/Library/PrivateFrameworks/ProKit.framework The images are in a custom binary file: /System/Library/PrivateFramewor

Re: NSDocument disc undo stack

2012-04-02 Thread Steven
ation is closed. Steven. > > > On 25/03/2012, at 5:34 AM, Doug Clinton wrote: > >> I don't know if this was the issue that Steven was asking about, but I've >> been wondering if there is a recommended way to persist the undo stack so >> that it's stil

Re: NSDocument disc undo stack

2012-03-25 Thread Steven
Thanks for the info Graham. I'm using NSUndoManager. I thought that many large objects in the stack would cause memory pressure and would be better occupying disc space as they are only needed at undo/redo time. Good to know that the VM system will take care of it. Steven. On 24 Mar 201

NSDocument disc undo stack

2012-03-23 Thread Steven
file document should a temporary directory be used ? I guess the chosen location may need to persist beyond the occurrence of the automatic termination feature. Any advice appreciated. Thanks. Steven. ___ Cocoa-dev mailing list (Cocoa-dev@lists.appl

Re: __block __weak - am I doing this right?

2012-02-18 Thread steven Hooley
> That's exactly *why* I've been asking about it - so I can fix it (and explain > the fix) for the new edition: Sorry, I did not mean to imply 'many people have done it wrong because of this book'. What i Failed at saying was "but.. I've seen this pattern everywhere, even in Apple sample code, it

Re: __block __weak - am I doing this right?

2012-02-18 Thread steven Hooley
mp;sa=X&ei=T-s_T76JEaOl0AW0y-iPDw&ved=0CGoQ6AEwCTgK#v=onepage&q=beginBackgroundTaskWithExpirationHandler&f=false That's an awful lot of broken code. On 18 February 2012 17:23, Fritz Anderson wrote: > On 18 Feb 2012, at 7:41 AM, steven Hooley wrote: > >&g

Re: __block __weak - am I doing this right?

2012-02-18 Thread steven Hooley
> The same issue came up again later the same day: > >__block UIBackgroundTaskIdentifier bti = [[UIApplication sharedApplication] >beginBackgroundTaskWithExpirationHandler: > ^{ >[[UIApplication sharedApplication] endBackgroundTask:bti]; >}]; > >

Re: NSView mouseDown truncated coordinates

2011-11-27 Thread Steven
mouseDown does. I noticed that NSWindow mouseLocationOutsideOfEventStream does produce the non-integral coordinates when called from mouseDown, though that may not be the right direction to go. Steven ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

NSView mouseDown truncated coordinates

2011-11-25 Thread Steven Spencer
w:nil]; Logged as e.g. NSLog(@"moved x:%f y:%f", location.x, location.y); What is the correct way to obtain coordinates that are consistent across all the mouse events ? Thanks. Steven (Xcode 4.2.1 64bit LLVM 3.0 ARC) ___ Cocoa-dev mailing

NSBezierPath HiDPI

2011-09-10 Thread Steven Spencer
d ? I have to rerun the code for it to take account of a display resolution change, how do I fix this ? Thanks. Steven Lion, Xcode 4.1, Garbage collection on. -- #import @interface TestView : NSView { NSBezierPath *thePath; } - (NSAffineTran

Re: New allowsExternalBinaryDataStorage in Core Data

2011-08-25 Thread Steven Vandeweghe
ld be stored in ~/Library/MyLionApp/.MyLionApp_SUPPORT/_EXTERNAL_DATA/. The documentation is indeed very sparse, so I've investigated a bit myself and posted the results here : http://bluecrowbar.com/blog/2011/08/coredata-external.html Steven On Aug 3, 2011, at 10:29 PM, Frédéric Te

Re: Code style (was: Notify With Parameters)

2011-06-02 Thread Steven Woolgar
> Slightly OT: Does Apple offer a tool similar to 'indent' for > formatting? I've never tried indent on Objective C files because it > does a miserable job on C++ source files. I use Uncrustify Hope that helps. W. ___

Properties vs Instance Variables

2011-04-26 Thread Guy Steven
I am currently learning objective c and cocoa I believe I understand the difference between properties and instance variables, and the effect of using properties as opposed to instance variables viz a viz KVO and memory management. What I can't understand is why you would access instance variable

computing values within NSTableView using bindings

2011-04-21 Thread Guy Steven
I have an NSTableView with 3 columns. The first contains an NSPop-up which takes as its datasource an array of objects with two properties, name and cost. The name is displayed. The user enters a quantity in the 2nd column. How do I go about displaying the cost in the third column? I can bind t

RE: How To Increment CALayer Retain Count?

2011-04-11 Thread steven Hooley
>> I know its not very popular, but I've disciplined myself to set all >> variables (including stack) to their low or unused state when finished >> with them. It helps locate reuse problems in Debug builds (and I >> really don't care a bit about the 3 cycles). The optimizer can remove >> it later i

Re: Book for expert programmer about cocoa and Objective-C

2011-04-02 Thread Steven Woolgar
> But now, I need a book for professional. Book that is BIG, DIFFICULT and is > HARDCORE about anything for cocoa and objective-c. That show a really lot of > thing. That will be my book for years.. You understand, right? Cocoa Design Patterns:

Re: NSUndoManager retain/release of arguments - ad infinitum

2011-01-11 Thread steven Hooley
I don't mean to hijack this thread, but my first thought, for what it's worth is that either :- a) sort order is a property of the window, not your model and shouldn't be undoable at all. What happens if you want another view - say a grid view, with nice big icons - of the same data?. Should that

Re: Math.h functions with CGFloat

2010-08-10 Thread steven Hooley
ult so maybe it shouldn't be? Thanks On 10 August 2010 15:19, Graham Cox wrote: > > On 11/08/2010, at 12:12 AM, steven Hooley wrote: > >> Because CGFloat is typedef'd to float on 32bit and double on 64bit i >> have to swap between, eg,  atan and atanf depending on my

Re: Math.h functions with CGFloat

2010-08-10 Thread steven Hooley
nario and some useful macros might already exist. Thanks On 10 August 2010 14:10, lbland wrote: > hi- > > On Aug 10, 2010, at 8:42 AM, steven Hooley wrote: > >> Is there a preferred way to use the Math.h functions with CGFloats >> that is 32 and 64 bit safe? >> Do

Fwd: Math.h functions with CGFloat

2010-08-10 Thread steven Hooley
Sorry, 'safe' was a bad choice. I do care because i have compiler warnings. I have started defining macros for each function and thought i better check that they didn't already exist. Thankyou On 10 August 2010 14:54, Alastair Houghton wrote: > On 10 Aug 2010, at 13:42, s

Math.h functions with CGFloat

2010-08-10 Thread steven Hooley
Is there a preferred way to use the Math.h functions with CGFloats that is 32 and 64 bit safe? Do some Macros already exist somewhere? Should i even be using Math.h functions in Cocoa? Thanks ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Plea

Re: self = [super init], nil?

2010-05-11 Thread steven Hooley
Oh, i fondly remember when it used to support it. But anyway, this is off topic.. so i'll be quiet. On 11 May 2010 12:52, Joanna Carter wrote: > Le 11 mai 2010 à 12:36, steven Hooley a écrit : > >> Not really valid, given xcode doesn't support code coverage. > > Try G

Re: self = [super init], nil?

2010-05-11 Thread steven Hooley
> Fourth reason: it doesn't play well with code coverage. If the 'if' and > its body are on the same line then knowing that that line executed does > not tell you as much as it could if the body was on its own line. Not really valid, given xcode doesn't support code coverage.

Re: advancementForGlyph problem

2010-05-04 Thread steven Hooley
On 3 May 2010 02:00, David F. wrote: > >> How on earth are you determining that it "looks like the advancement >> should only be ~23.2" ? > > By counting pixels. > You mean, for example, the distance from the leftmost pixel of the 'A' to the leftmost pixel in the following glyph? My current think

Re: advancementForGlyph problem

2010-04-30 Thread steven Hooley
> The information I am getting back from advancementForGlyph doesn't > seem to be correct. Here are the glyph bounds and advancement for > the capital letter 'A' in Georgia 36pt: > > == A == > bounds x: -0.720703 > bounds y: 0.00 > bounds w: 25.699219 > bounds h: 25.294922 > advance w: 24.1523

Re: Any frameworks for Leopard's Spaces?

2010-04-05 Thread Steven Degutis
The NSWorkspace notification is the only public API for this. Relatedly, you should not use private APIs which will restrict Apple's ability to change the internal implementation easily in the future, and make innovations or improvements difficult on them. -Steven 2010/4/5 Ulai Beekam &g

Re: Best book for learning Objective c and cocoa

2010-03-31 Thread Steven Degutis
Depending on your level of experience with Cocoa and Objective-C, you may benefit from Cocoa Programming for Mac OS X, by Big Nerd Ranch: http://www.bignerdranch.com/book/cocoa ®_programming_for_mac®_os_x_3rd_edition -Steven On Wed, Mar 31, 2010 at 8:20 AM, Nikhil Khandelwal < nikhil_khan

Re: How to add a DOCTYPE declaration to an NSXMLDocument?

2010-03-31 Thread Steven Spencer
The following code produces the equivalent XML : NSXMLDocument *myDoc = [[NSXMLDocument alloc] initWithRootElement:[NSXMLElement elementWithName:@"myDocType"]]; NSXMLDTD *myDTD = [[NSXMLNode alloc] initWithKind:NSXMLDTDKind]; [myDTD setName:@"myDocType"]; [myDoc setDTD:myDTD]; [myDoc setVersion:

Re: Cocoa sometimes raises "minor" exceptions without logging them

2010-03-17 Thread Steven Degutis
I usually add a breakpoint on objc_exception_throw. Not sure how much of a difference it makes... but yeah, I agree. -Steven On Wed, Mar 17, 2010 at 12:55 PM, Jerry Krinock wrote: > > Apparently, Cocoa sometimes raises "minor" exceptions without logging them, > so it&#

Re: app window that doesn't deactive the current app

2010-03-16 Thread Steven Degutis
Please refer to this article: http://stackoverflow.com/questions/1657659/cocoa-nsstatusbar-global-hotkey =Steven On Tue, Mar 16, 2010 at 3:16 PM, Martin Batholdy wrote: > Hi, > > I would like to have a window that pops up via a shortcut. > This window should be in background and th

Re: Nil items in NSMutableSet

2010-03-16 Thread Steven Degutis
even data-corrupting ones) and then send that app to unsuspecting users. Not a great piece of advise, in my book. -Steven On Tue, Mar 16, 2010 at 6:34 PM, Daniel DeCovnick wrote: > There was a thread on this list a few days ago about effective method > swizzling into Apple classes. Despite be

Re: Cut and paste out of/ into text fields in a separate window doesn't work

2010-03-16 Thread Steven Degutis
otentially confusing plugin authors, and possibly even newer users. -Steven On Mon, Mar 15, 2010 at 2:27 PM, Don Quixote de la Mancha < quix...@dulcineatech.com> wrote: > On Mon, Mar 15, 2010 at 10:15 AM, Steven Degutis > wrote: > > In my experience, Firefox (and thus > > prob

Re: Cut and paste out of/ into text fields in a separate window doesn't work

2010-03-15 Thread Steven Degutis
developers of the host app to ask them what's going on, since they will have more intimate knowledge of their app's "uniqueness". -Steven On Mon, Mar 15, 2010 at 11:04 AM, Brian Postow wrote: > I have a Mozilla plugin which puts up a separate window for login > inform

Re: death in dealloc

2010-03-13 Thread Steven Degutis
release an ivar but don't set it to nil afterwards. -Steven On Sat, Mar 13, 2010 at 12:53 PM, Stuart Malin wrote: > I have some code that is throwing EXC_BAD_ACCESS. It does so when an object > is deallocating, in its -dealloc method on a call to [super dealloc]. The > object's

Re: Bison/Yacc with Objective-C ?

2010-03-12 Thread steven Hooley
> Bloomin' magic! Thanks, Filip, it worketh well. Hardy souls all. > Tom W. Is it possible to see an example of how this might be used? I'd like to understand Bison/Yacc better and i think an example relevant to Cocoa / Objective-C would really help.

Re: Is kCAOnOrderOut too good to be true?

2010-03-09 Thread Steven Degutis
Not yet; still asking everyone I know and hoping a Core Animation wizard comes across this thread. -Steven On Tue, Mar 9, 2010 at 2:49 PM, Jon Buffington wrote: > Steven, > > Did you ever find a solution to the kCAOnOrderOut animation problem? I was > frustrated by this problem in

Re: WebView refresh problem

2010-03-09 Thread Steven Degutis
nto the WebView? Thanks. -Steven On Tue, Mar 9, 2010 at 7:26 AM, Arun wrote: > Hi All > > I have an application which has a single window with a webview inside it. > When the application starts it starts a background thread from which i will > be feeding different HTML files usi

Re: Is kCAOnOrderOut too good to be true?

2010-03-06 Thread Steven Degutis
n returned given kCAOnOrderOut, it would be appreciated. -Steven On Sat, Mar 6, 2010 at 7:18 PM, Kyle Sluder wrote: > On Sat, Mar 6, 2010 at 3:08 PM, Steven Degutis > wrote: > > I've been reading the docs for Core Animation, specifically about > > layer-actions,

Is kCAOnOrderOut too good to be true?

2010-03-06 Thread Steven Degutis
on, and in the didStop delegate, removing the layer myself? Code would be so much cleaner if just calling -removeFromSuperlayer would invoke the animation for me and then remove it itself... -Steven ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Converting a Cocoa Application project to a document-based one

2010-03-05 Thread Steven Degutis
these menu items hook up into, as well as seeing what the Info.plist is looking for in terms of document-handling info. -Steven P.S. Any relation to Lestat? On Thu, Mar 4, 2010 at 6:42 PM, Josh de Lioncourt wrote: > Hi all, > > First the question, in essence, is: > > If on

Re: Uninitialized rectangle??

2010-03-04 Thread Steven Degutis
allow you to access that view's -window and thus the -frame of the NSWindow. Keep in mind though that this is a hack, and also usually very unnecessary and bad and against the HIG in the first place. -Steven On Thu, Mar 4, 2010 at 2:01 PM, fabian wrote: > On Thu, Mar 4, 2010 at 7:

Re: Uninitialized rectangle??

2010-03-04 Thread Steven Degutis
Right. Have you tried the solution I proposed in the /very first reply/ to this thread? -Steven On Thu, Mar 4, 2010 at 1:05 PM, fabian wrote: > On Thu, Mar 4, 2010 at 6:50 PM, Steven Degutis > wrote: > >> Are you sure that your NSStatusBar or NSStatusItem instances are nil,

Re: Uninitialized rectangle??

2010-03-04 Thread Steven Degutis
Are you sure that your NSStatusBar or NSStatusItem instances are nil, and not just what's returned from -view? I see no reason that it should be nil, and no proof that it is. (To be fair, I only skimmed this mess of a thread.) -Steven On Thu, Mar 4, 2010 at 12:05 PM, fabian wrote: >

Re: Uninitialized rectangle??

2010-03-03 Thread Steven Degutis
will only get a value relative to the view's superview, so that'll be useless too. -Steven On Wed, Mar 3, 2010 at 2:23 PM, fabian wrote: > Hi, > > I once noticed that this code caused an assertion failure when placed > in awakeFromNib. > > NSStatusBar *statusB

Re: Windows and nibs and dialogs, oh my!

2010-03-02 Thread Steven Degutis
he -window outlet of your subclass to the NSWindow in the XIB file (5) Instantiate your subclass somewhere and either access -window directly or call -showWindow: (which is what I usually do) -Steven On Tue, Mar 2, 2010 at 9:13 PM, William Squires wrote: > Please help, I'm still a bit fuzz

Re: what is a bindings pattern to check for a non-empty selection?

2010-03-02 Thread Steven Degutis
I mean be disabled when the table has no selection, and enabled when it has any selection at all.) -Steven On Fri, Feb 19, 2010 at 7:04 AM, Joanna Carter < cocoa...@carterconsulting.org.uk> wrote: > Le 19 févr. 2010 à 11:02, Jean-Denis Muys a écrit : > > > I am looking for a way to enab

Re: NSForegroundColorAttributeName without AppKit

2010-03-01 Thread Steven Degutis
ey might change under your nose. -Steven On Mon, Mar 1, 2010 at 10:27 PM, BareFeet wrote: > Thanks Graham for your reply: > > >> I have some working code for adding attributes to a string. I'd like to > modify it so it will work without needing AppKi

Re: Forcing the package bit

2010-03-01 Thread Steven Degutis
I believe this can be accomplished by exporting a new UTI that describes your package type (probably by extending com.apple.package or something like that). This would be done inside your app's Info.plist file. -Steven On Mon, Mar 1, 2010 at 8:14 PM, Graham Cox wrote: > I need to

Re: NSViewAnimation vs Distributed Notification: Bug?

2010-02-27 Thread Steven Degutis
change the mode away from blocking-mode to something more background-thread-y. -Steven On Sat, Feb 27, 2010 at 6:24 PM, Iceberg-Dev wrote: > [Q] Is there a known bug in NSViewAnimation on Mac OS X 10.4 when it comes > to Distributed Notifications? > > Scenario: > - >

Re: How to get my application version from inside my code?

2010-02-27 Thread Steven Degutis
This is already shown in the default About box window, which is sufficient for most apps. But if you really need to have your own custom About box, you can get most of that information from -[NSBundle objectForInfoDictionaryKey:] -Steven On Sat, Feb 27, 2010 at 4:21 PM, Bengt Nilsson wrote

Re: NSMenuItem Action

2010-02-27 Thread Steven Degutis
list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/cocoa-dev/steven.degutis%40gmail.com > > This email sent to steven.degu...@gmail.com >

Re: NSButton and NSEvent

2010-02-27 Thread Steven Degutis
d line anyway, usually. So I wouldn't put too much thought into this. -Steven On Sat, Feb 27, 2010 at 8:46 AM, Jeremy Matthews wrote: > So I have a application that I am getting ready to put some finishing > touches on, but there are one or two things I'd like to do differently.

Re: Webview and dynamic content

2010-02-27 Thread Steven Degutis
Store them in your app's bundle. Related, if you want my 2¢, try as often as you can to avoid using a WebView. If you can replace its functionality with native Cocoa (and Touch) controls then that is the recommended development path. -Steven On Sat, Feb 27, 2010 at 5:39 AM, Jere Gmail

Re: Setting parent window

2010-02-26 Thread Steven Degutis
;s a really bad user experience to have a modal window when one is not required. Please look into reading Apple's documents called the Human Interface Guidelines, your users (and fellow developers on this list) will really appreciate it. -Steven On Thu, Feb 25, 2010 at 7:38 PM, Gaurav Sri

Re: Removing quit button from dock menu

2010-02-24 Thread Steven Degutis
hey can quit it from the Dock in 2 ways (Quit or Force Quit). The recommended first step is to read the Human Interface Guidelines on what an app should and should not do. If you read and follow the HIG, your users will like you a lot better. -Steven On Wed, Feb 24, 2010 at 4:20 AM, yogin bharg

Re: Removing quit button from dock menu

2010-02-23 Thread Steven Degutis
As I mentioned before, doing this is not supported by Apple. What kind of app are you creating, and why exactly are you under the belief that users must not be able to quit it from the Dock? -Steven On Tue, Feb 23, 2010 at 1:33 AM, yogin bhargava wrote: > I dont want to allow the user to q

Re: Help with creating CustomViews

2010-02-23 Thread Steven Degutis
ame of the correct XIB it requires. Then, in the rest of your code, instantiate your NSViewController subclass and ask for its NSView via the -view accessor. Add the NSView anywhere you want. I often do this by using an NSBox and using -setContentView: -Steven On Fri, Feb 19, 2010 at 4:20 PM, Jean-He

Re: Removing quit button from dock menu

2010-02-22 Thread Steven Degutis
This is not supported because users should be able to quit any app they choose. However, if your app is a Kiosk app, then there are other measurements you can take to make sure it runs in Kiosk mode. Look in Apple's docs for "kiosk mode" for more details. -Steven On Mon, Feb 22,

Re: Help with creating CustomViews

2010-02-19 Thread Steven Degutis
This is what more experienced Cocoa coders generally do instead of what you're trying to do. -Steven On Mon, Feb 15, 2010 at 9:19 PM, Jean-Henri Duteau wrote: > Hi all, > > I'm a newcomer when it comes to Cocoa development. I have some good books > and they discuss the possibil

Re: what is a bindings pattern to check for a non-empty selection?

2010-02-19 Thread Steven Degutis
s bindings like this, so I've been looking for a "built-in" alternative. So now I'm wondering if "selectedobjec...@count" is a good alternative. Have yet to try it, but it looks viable. -Steven On Fri, Feb 19, 2010 at 8:27 AM, Ken Thomases wrote: > On Feb 19, 2010

Re: Proper way to initialize application support file

2010-02-17 Thread Steven Degutis
Apple's docs explicitly say that this folder should only contain files that are *not* necessary for the app to function normally. Files that are necessary should be inside your app bundle, usually. -Steven On Wed, Feb 17, 2010 at 4:21 PM, Paul Johnson wrote: > I am working on a Docume

  1   2   3   4   >