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 >

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

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

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

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

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 >

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 >

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

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

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

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: Can scroll direction be changed programmatically?

2013-05-09 Thread Steven Degutis
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 comments to the list. Contact the moderators at cocoa-dev-admins

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 witness.of.teacht...@gmx.net wrote: On 09.05.2013, at 20:55, Steven Degutis sbdegu...@gmail.com

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 z...@mac.com wrote: On May 8, 2013, at 1:14 AM, Steven Degutis wrote: It's funny how when you say

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 z...@mac.com 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

Wanted: new owner for Mac apps

2013-05-07 Thread Steven Degutis
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)lists.apple.com Help/Unsubscribe/Update your

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 sbdegu...@gmail.com wrote

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 sbdegu...@gmail.com wrote: Alternatively, anyone and everyone is welcome to fork these apps, or do whatever you

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 tomv...@gmail.com wrote: On Tue, May 7, 2013 at 9:54 AM, Steven Degutis sbdegu...@gmail.com wrote: These ones: https://github.com/sdegutis/grs (...) For the curious, I'm giving them away because I think something got cut off here

Re: Wanted: new owner for Mac apps

2013-05-07 Thread Steven Degutis
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 sbdegu...@gmail.com wrote: Also, I've just

Re: Wanted: new owner for Mac apps

2013-05-07 Thread Steven Degutis
://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 scottand...@roadrunner.com wrote: Hmmm. Wonder how long they'll last. Can you do me a bit of research. See if you can find reviews

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 sbdegu...@gmail.com 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

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 sbdegu...@gmail.com wrote: Also, sorry about the unfinished sentence at the end, it happened because On Tue, May 7, 2013 at 8:54 AM, Steven Degutis sbdegu...@gmail.com wrote: These ones

Re: Wanted: new owner for Mac apps

2013-05-07 Thread Steven Degutis
to take one. Sent from my iPhone On May 7, 2013, at 9:54 AM, Steven Degutis sbdegu...@gmail.com 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 marketing they've been making about $42 per

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 sbdegu...@gmail.com 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

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 t...@verizon.net 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

Re: Showing numpad key equivs in menu items

2013-05-07 Thread Steven Degutis
* 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. Think about that for a bit. (And that goes double for Steven who claimed that making such suggestions was the mark of a fanboy.) In that case, I

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 sbdegu...@gmail.com wrote: These ones: https://github.com/sdegutis/grs They're a lovely

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 sbdegu...@gmail.com wrote: Update: The original repo has been deleted. Take a look at one

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 smi...@makemusic.com wrote: On May 6, 2013, at 16:58:10, gweston gwes...@mac.com wrote: In light of the great opportunity for user confusion - because a little rectangle

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

Is FSEvents more efficient than polling?

2013-04-28 Thread Steven Degutis
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 Subscription

Re: Is FSEvents more efficient than polling?

2013-04-28 Thread Steven Degutis
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 sbdegu...@gmail.com wrote: There is a library I'm using that is reading a list of files every 0.5 seconds

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 oleg.krup...@gmail.comwrote: The compiler indeed warns, but only for ARC projects, and for non-ARC

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 cocoa...@charlessoft.comwrote: On Apr 17, 2013, at 11:44 AM, Steven Degutis sbdegu...@gmail.com wrote: Called Windows.app. ... I think someone may have used the name Windows already... Charles

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

2013-04-18 Thread Steven Degutis
/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 graham@bigpond.com wrote: Fantastic! What does it do? --Graham On 18/04/2013

ANN: new open-source window manager for OS X

2013-04-17 Thread Steven Degutis
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 comments to the list. Contact

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:

Re: NSDocument disc undo stack

2012-04-02 Thread Steven
history were lost when the app went off screen. the system may also quit an app with open windows if the app is not currently on screen, perhaps because the user hid it or switched spaces. TextEdit (in 10.7) retains its undo history beyond save, until the document or application is closed. Steven

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 2012

NSDocument disc undo stack

2012-03-23 Thread Steven
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.apple.com

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]; }]; Without

Re: __block __weak - am I doing this right?

2012-02-18 Thread steven Hooley
=onepageq=beginBackgroundTaskWithExpirationHandlerf=false That's an awful lot of broken code. On 18 February 2012 17:23, Fritz Anderson fri...@manoverboard.org wrote: On 18 Feb 2012, at 7:41 AM, steven Hooley wrote: The same issue came up again later the same day:   __block

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: 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
]; 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 list (Cocoa-dev

NSBezierPath HiDPI

2011-09-10 Thread Steven Spencer
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 Cocoa/Cocoa.h @interface TestView : NSView { NSBezierPath *thePath

Re: New allowsExternalBinaryDataStorage in Core Data

2011-08-25 Thread Steven Vandeweghe
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 Testuz wrote

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 http://uncrustify.sourceforge.net/ 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

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

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 if it

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

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)

Fwd: Math.h functions with CGFloat

2010-08-10 Thread steven Hooley
, steven Hooley wrote: Is there a preferred way to use the Math.h functions with CGFloats that is 32 and 64 bit safe? Why would they be unsafe?  (They aren't.) It's possible that using the double versions (the ones without the f suffix) is inefficient in 32-bit mode, but in practice you're

Re: Math.h functions with CGFloat

2010-08-10 Thread steven Hooley
and some useful macros might already exist. Thanks On 10 August 2010 14:10, lbland lbl...@vvi.com 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 some Macros already exist somewhere

Re: Math.h functions with CGFloat

2010-08-10 Thread steven Hooley
it shouldn't be? Thanks On 10 August 2010 15:19, Graham Cox graham@bigpond.com 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 build settings. I have a framework

Re: advancementForGlyph problem

2010-05-04 Thread steven Hooley
On 3 May 2010 02:00, David F. dav...@gmx.us 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

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.152344

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

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_khandel

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 je...@ieee.org wrote: Apparently, Cocoa sometimes raises minor exceptions without logging them, so it's good idea

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

2010-03-16 Thread Steven Degutis
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 steven.degu...@gmail.com wrote: In my experience, Firefox (and thus probably other Mozilla apps) isn't

Re: Nil items in NSMutableSet

2010-03-16 Thread Steven Degutis
) 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 danhd...@mac.com wrote: There was a thread on this list a few days ago about effective method swizzling into Apple classes. Despite being replete

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 batho...@googlemail.comwrote: Hi, I would like to have a window that pops up via a shortcut. This window should be in background

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

2010-03-15 Thread Steven Degutis
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 brian.pos...@acordex.comwrote: I have a Mozilla plugin which puts up a separate window for login information. It seems to work fine, it gets keyboard events

Re: death in dealloc

2010-03-13 Thread Steven Degutis
set it to nil afterwards. -Steven On Sat, Mar 13, 2010 at 12:53 PM, Stuart Malin stu...@zhameesha.com 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 class's superclass

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. Thanks, Steven

Re: WebView refresh problem

2010-03-09 Thread Steven Degutis
? Thanks. -Steven On Tue, Mar 9, 2010 at 7:26 AM, Arun arun...@gmail.com 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 using

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 li...@jon.buffington.namewrote: Steven, Did you ever find a solution to the kCAOnOrderOut animation problem? I was frustrated

Is kCAOnOrderOut too good to be true?

2010-03-06 Thread Steven Degutis
, 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) Please do

Re: Is kCAOnOrderOut too good to be true?

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

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 cocoadevl

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 cocoadevl...@gmail.com wrote: On Thu, Mar 4, 2010 at 6:50 PM, Steven Degutis steven.degu...@gmail.comwrote: Are you sure that your NSStatusBar

Re: Uninitialized rectangle??

2010-03-04 Thread Steven Degutis
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 cocoadevl...@gmail.com wrote: On Thu, Mar 4, 2010 at 7

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 cocoadevl...@gmail.com wrote: Hi, I once noticed that this code caused an assertion failure when placed in awakeFromNib. NSStatusBar *statusBar = [NSStatusBar

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

2010-03-02 Thread Steven Degutis
, 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 enable a button in my window only if some selection has been made

Re: Windows and nibs and dialogs, oh my!

2010-03-02 Thread Steven Degutis
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 wsqui...@satx.rr.comwrote: Please help, I'm still a bit fuzzy on how

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 graham@bigpond.com wrote: I

Re: NSForegroundColorAttributeName without AppKit

2010-03-01 Thread Steven Degutis
under your nose. -Steven On Mon, Mar 1, 2010 at 10:27 PM, BareFeet list.develo...@tandb.com.auwrote: 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 AppKit. I can get it all going except

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 zon7m

Re: NSButton and NSEvent

2010-02-27 Thread Steven Degutis
into this. -Steven On Sat, Feb 27, 2010 at 8:46 AM, Jeremy Matthews jeremymatth...@mac.comwrote: 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...er, better. It is a simple tool (Cocoa Desktop app

Re: NSMenuItem Action

2010-02-27 Thread Steven Degutis
(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 -- Steven Degutis http://www.thoughtfultree.com/ http://www.degutis.org

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

Re: NSViewAnimation vs Distributed Notification: Bug?

2010-02-27 Thread Steven Degutis
-mode to something more background-thread-y. -Steven On Sat, Feb 27, 2010 at 6:24 PM, Iceberg-Dev dev.iceb...@gmail.com wrote: [Q] Is there a known bug in NSViewAnimation on Mac OS X 10.4 when it comes to Distributed Notifications? Scenario: - If I animate a window resizing through

Re: Setting parent window

2010-02-26 Thread Steven Degutis
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 Srivastava gauravwin

Re: Removing quit button from dock menu

2010-02-24 Thread Steven Degutis
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 bhargava bhargavayo

Re: Help with creating CustomViews

2010-02-23 Thread Steven Degutis
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-Henri Duteau

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 bhargavayo...@gmail.comwrote: I dont want

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, 2010 at 1:52 AM

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

2010-02-19 Thread Steven Degutis
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 k...@codeweavers.com wrote: On Feb 19, 2010, at 7:15 AM, Jerry Krinock wrote

Re: Help with creating CustomViews

2010-02-19 Thread Steven Degutis
coders generally do instead of what you're trying to do. -Steven On Mon, Feb 15, 2010 at 9:19 PM, Jean-Henri Duteau duteaudes...@gmail.comwrote: Hi all, I'm a newcomer when it comes to Cocoa development. I have some good books and they discuss the possibility of CustomViews but the views

Re: alternative to NSMatrix due to cell size restriction

2010-02-17 Thread Steven Degutis
You may want to use an NSTableView instead, sort of along the lines of what iTunes uses in its many different kinds of table-based modes. (Especially that new one with the artwork.) -Steven On Wed, Feb 17, 2010 at 6:17 AM, Eric Boo eric...@gmail.com wrote: Hi All, I have an NSView in which

Re: Dynamically populate a popup menu

2010-02-17 Thread Steven Degutis
://lists.apple.com/mailman/options/cocoa-dev/steven.degutis%40gmail.com This email sent to steven.degu...@gmail.com -- Steven Degutis http://www.thoughtfultree.com/ http://www.degutis.org/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: Dynamically populate a popup menu

2010-02-17 Thread Steven Degutis
While NSMenuDelegate isn't wrong per se, I still prefer to use the NSPopUpButton's notification myself. Touching the button's internal menu seems like dipping my fingers where they don't belong. -Steven On Wed, Feb 17, 2010 at 10:41 AM, Jean-Daniel Dupas devli...@shadowlab.orgwrote: See

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 p...@askerko.net wrote: I am working

Re: Validation error after setting the value of a boolean attribute

2010-02-16 Thread Steven Degutis
, if you look at the header of your file, it tells you what types you should use as arguments to methods, and what types to expect as return values. Steven Degutis Software Engineer Big Nerd Ranch, Inc. http://www.bignerdranch.com/ On Tue, Feb 16, 2010 at 5:35 PM, Lynn Barton lynnbar...@mac.com

Re: Executing shell script with root privilege

2010-02-15 Thread Steven Degutis
Essentially you need to use the Security.framework API which you were already using in the beginning. You're already heading in the right direction. If you continue to read the docs on it, you'll get your sample code working; they're pretty thorough docs I believe. -Steven On Mon, Feb 15, 2010

  1   2   3   >