Re: Building an MVC based App for Mac OS X - NOT for iOS

2013-05-28 Thread Uli Kusterer
ws, or something > more complex. Examples of Cocoa/Mac classes that are views in the MVC sense, but not in the NSView/UIView sense: NSWindow NSMenu NSMenuItem NSCell Pretty much any NSResponder, though Smalltalk purists might disagree. Cheers, -- Uli Kus

Re: Carbon removal

2013-07-04 Thread Uli Kusterer
On Jul 3, 2013, at 19:23, Chris Paveglio wrote: > I've got a project that I am working with, that I did not create. I am trying > to understand it and I would like to remove the Carbon framework dependencies > in it. I don't know anything about Carbon. Is there a good resource to read > up on

Re: Carbon removal

2013-07-04 Thread Uli Kusterer
On Jul 3, 2013, at 21:40, Jerry Krinock wrote: > To answer your question, I think the procedure is… > > * In your main target and its target dependencies, > * Set the SDK to "Latest Mac OS X". > * Set the architecture to x86_64. > * Clean your project, so that everything will be recompiled. > *

Re: Leak when "drawing too fast"

2013-07-09 Thread Uli Kusterer
On Jul 8, 2013, at 20:28, Andreas Mayer wrote: > It seems like when I call -setNeedsDisplay:YES the system is spawning a timer > to do something later on and when those calls come in too fast, that timer is > leaked. > > Any idea what I could do about that? > (I tried calling -setNeedsDisplay:Y

Re: Unrecognized selector in release build, not in debug build

2013-07-10 Thread Uli Kusterer
race in Xcode's debugger, or in a log file? If the former, have you tried moving the slider at the bottom of the window? It sometimes gets changed accidentally and then tries to be smart and remove irrelevant symbols (which might just be relevant in your case). Cheers, -- Uli Kusterer &q

Re: Unrecognized selector in release build, not in debug build

2013-07-10 Thread Uli Kusterer
here's textual, regex, symbol definitions and symbol references that you can search for (you see the options in the little magnifying glass menu under "Show Find Options"). If you pick e.g. Symbol Definitions and type in remove, you probably get one function somewhere instead of remove

Re: Curious about a property being declared in the .h and the .m file for iOS

2013-07-15 Thread Uli Kusterer
in it, so it redeclares it from readonly to readwrite in a class continuation. This is pretty much the only valid way to declare the same property twice, changing anything else on the property will give an error message, but readonly -> readwrite is OK. Cheers, -- Uli Kusterer "Th

Re: Curious about a property being declared in the .h and the .m file for iOS

2013-07-15 Thread Uli Kusterer
On Jul 15, 2013, at 8:42 PM, Alex Zavatone wrote: > > On Jul 15, 2013, at 2:38 PM, Uli Kusterer wrote: > >> On Jul 15, 2013, at 8:31 PM, Alex Zavatone wrote: >>> DownloadOperation.h >>> @interface DownloadOperation : NSOperation >>> - (id)initWit

Re: LATIN SMALL LETTER U WITH DIAERESIS

2013-07-17 Thread Uli Kusterer
On Jul 17, 2013, at 23:26, koko wrote: > NSString *filepath = [savePanel filename]; > const char * cFilePath = [[NSFileManager defaultManager] > fileSystemRepresentationWithPath:filepath]; > > Then in my low level I/O: > > FILE* f = NULL; > f = fopen(path, mode); > > f is NULL i.e. path (the c

Re: type of NSNotFound

2013-07-20 Thread Uli Kusterer
ries and the NSArray object itself and your application’s code and ... This way, NSNotFound works both for NSInteger and NSUInteger and is the same value, and you don’t need an additional NSUNotFound. Cheers, -- Uli Kusterer “The Witnesses of TeachText ar

Re: NSTextView's MarkedText

2013-07-24 Thread Uli Kusterer
type Option-`, I get the tick mark with a yellow background, indicating I can now type an 'a' for instance to get 'à' ? Is that a good example, or is that different again? (Just hoping I can provide an example for US and other people and learn something on the way) Cheers,

Re: Leak when "drawing too fast"

2013-07-25 Thread Uli Kusterer
ALayer, which uses (something like a) display link internally. You just call setNeedsDisplay: whenever you want a redraw and it calls drawRect: whenever it's time to draw and the layer needs display. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..."

Re: Leak when "drawing too fast"

2013-07-26 Thread Uli Kusterer
On Jul 25, 2013, at 20:26, Andreas Mayer wrote: > Am 25.07.2013 um 19:36 schrieb Uli Kusterer : > >> Have you considered using a display link callback instead of a timer? > > Yes. Moving to the display link callback was when I noticed the issue in the > first place.

Re: Observing Time

2013-07-26 Thread Uli Kusterer
approach, but certainly easier than understanding > mach_time :D > I'm using Core Animation for most of the UI changes, so the main thread won't > be super busy. > > I may not even need the 1 second as the seconds won't add a whole lot of info > when looking at tim

Re: Leak when "drawing too fast"

2013-07-26 Thread Uli Kusterer
On Jul 26, 2013, at 5:11 PM, Kyle Sluder wrote: > On Fri, Jul 26, 2013, at 03:41 AM, Uli Kusterer wrote: >> On Jul 25, 2013, at 20:26, Andreas Mayer wrote: >>> Am 25.07.2013 um 19:36 schrieb Uli Kusterer : >>> >>>> Have you considered using a d

Re: NSMenuItemCell setMenuItem does not retain?

2013-08-02 Thread Uli Kusterer
temCell had been deprecated ages ago, but looking at the headers I only see NSMenuView being removed for 64 bit. It *does* have the note: "Note: NSMenuItemCell is no longer used to draw menus. Using it will not affect the appearance of your menus." in Apple's docs. Cheers, -- Uli

Re: NSMenuItemCell setMenuItem does not retain?

2013-08-02 Thread Uli Kusterer
to set the whole menu, and setSelectedItem: to select that particular item. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not p

Re: Storing an NSImage File

2013-08-02 Thread Uli Kusterer
file? I think that's essentially what -TIFFRepresentation maps to. An empty dictionary. Should be fine, unless the docs disagree. But this is from memory, someone else here might know better. Cheers, -- Uli Kusterer "The Witnesses of

Re: Storing an NSImage File

2013-08-04 Thread Uli Kusterer
On Aug 2, 2013, at 21:44, Gordon Apple wrote: > Next question. Does anyone know how to get a PieceInfo Dictionary (if it > exists) out of a PDFDocument or PDFPage? Do I have to go outside of Cocoa > to get this? Not sure what a PieceInfo is, but have you looked at PDFKit? Cheer

Re: drawing outside the dirtyRect (of a NSView sub class) and overlapping NSTableView

2013-08-05 Thread Uli Kusterer
to muck with child windows fighting sheets, etc. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderat

Re: Checking if NSURL exists

2013-08-06 Thread Uli Kusterer
de might not even be able to check whether a URL exists, but only if there is a server at that URL. For most uses that isn't a problem, but for some it is. The web is a crazy place. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de

Re: IOS floating point performance

2013-08-11 Thread Uli Kusterer
Calendar and NSDateFormatter objects is to keep them in static variables. That way you pay the overhead once, per function/module and then it gets re-used. Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://stacksmith.org __

Re: Dismissing Open dlog before doc actually opens

2013-08-15 Thread Uli Kusterer
messages to PowerBox to manipulate the actual window there, or to manage the little transparent, borderless window that holds your accessory view. orderOut: may be one of those. Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere..." *) Strictly speaking, in Classic there

Re: Converting to Arc → undeclared identifier

2013-08-20 Thread Uli Kusterer
oa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/

Re: How to detect a Retina Mac

2013-08-20 Thread Uli Kusterer
for bitmap images, NSImage these days uses a CGImageRef under the hood. Also, CGImageRefs try to be smart about keeping image data on the GPU if they can (so conceptually "use CIImage", if not actually). Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http:

Re: How to detect a Retina Mac

2013-08-20 Thread Uli Kusterer
ar about that in your phrasing above): CGImage and NSImage are not toll-free bridged. CGImageRef is more of an equivalent to NSBitmapImageRep than NSImage. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de _

Re: handleGetURLEvent getting called after applicationDidFinishLaunching

2013-08-22 Thread Uli Kusterer
so it enforces that. E.g. by writing a lazy-loading getter for whatever data you currently load in applicationDidFinishLaunching:, and calling it in your GURL Apple Event. That decouples it from the (completely unrelated) notification. Cheers, -- Uli Kusterer “The Witnesses of TeachText ar

Re: handleGetURLEvent getting called after applicationDidFinishLaunching

2013-08-22 Thread Uli Kusterer
On Aug 22, 2013, at 10:34 AM, Uli Kusterer wrote: > The notion of one of these being ‘more correct’ than the other is ridiculous. Maybe ridiculous is a bit too harsh a choice of word, sorry. Let's say I think that one of them being 'more correct' makes no difference in pra

Re: handleGetURLEvent getting called after applicationDidFinishLaunching

2013-08-22 Thread Uli Kusterer
On Aug 22, 2013, at 18:29, Bradley O'Hearne wrote: > On Aug 22, 2013, at 9:00 AM, Kyle Sluder wrote: >> On Aug 22, 2013, at 8:00 AM, Jens Alfke wrote: >>> On Aug 22, 2013, at 1:34 AM, Uli Kusterer >>> wrote: >>> >>>> The notion o

Re: handleGetURLEvent getting called after applicationDidFinishLaunching

2013-08-22 Thread Uli Kusterer
Dang, now my mind switched back into Classic mode and I used kAEOpenApplication instead of calling it ‘oapp’ as Jens called it. Sorry for the confusion, the two things are equivalent. Mine’s the constant, Jens’ is the value. Carry on. On Aug 23, 2013, at 7:35, Uli Kusterer wrote: > On Aug

Re: "Introducing ioscomponents.com"

2013-08-26 Thread Uli Kusterer
you want people to trust the quality of your code. That said, it's good to see more people contributing to an ecosystem of reusable components. Can you do me a favor and @-message @cocoaobjects on Twitter so I can link to these components at http://cocoaobjects.com ? Cheers, -- Uli

Re: "Introducing ioscomponents.com"

2013-08-26 Thread Uli Kusterer
m/Home/IOSRadioButtonCheckBox Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the l

Re: Experience with keyed archiving forward/backwards compatibility?

2013-08-28 Thread Uli Kusterer
or a compatible/incompatible version number scheme like above, maybe again per object. Also, if you add a new class, the old application won't be able to de-serialize it from a keyed archiver. However, keyed archivers work if you only need to be able to open files created

Re: How to fix warning?

2013-08-29 Thread Uli Kusterer
Xcode didn't support the Unicode escape sequence as far as I remember. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: please help with this handler issue

2013-08-29 Thread Uli Kusterer
age into the handler block for the request. 4) Change the method to -(void)userImage:(NSString*)name withAccount:(id)account completionHandler: (void (^)(UIImage* maskedImage))doneHandler and give it a block (remember, your code has to copy the block so it's still there when the request

Re: Experience with keyed archiving forward/backwards compatibility?

2013-09-01 Thread Uli Kusterer
ular need, like sqlite), or you use keyed archiving. It’s convenient, already debugged, and flexible. Premature optimization is the root of all evil. Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras.de ___ Co

Re: Bypassing Interface Builder

2008-05-14 Thread Uli Kusterer
it that way already. So, you see, they're not mutually exclusive. You can even load several NIBs and assemble them at runtime (that's what System Preferences does, for example). Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de __

Re: Bypassing Interface Builder

2008-05-14 Thread Uli Kusterer
they're more into doing classes than one-on-one tutoring, though they obviously do the one-on-one stuff as part of their classes). Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___

Re: Bypassing Interface Builder

2008-05-14 Thread Uli Kusterer
ication object in your application, so that's the File's Owner in that case. In other NIBs, the File's owner is generally the NSWindowController or NSViewController or NSDocument that loaded the corresponding NIB, or if you're using NSNibLoading directly, it's wha

Re: cocoa mentoring (was Re: Bypassing Interface Builder)

2008-05-15 Thread Uli Kusterer
Am 15.05.2008 um 15:36 schrieb Torsten Curdt: On May 15, 2008, at 07:55, Uli Kusterer wrote: Am 15.05.2008 um 00:53 schrieb colo: Well. Huh. After reading all of that. I wish there was sorta mentor program. Ah but where would be the fun in that. Any way thats off topic. There is a

Re: Guidance for Cocoa's steep learning curve

2008-05-15 Thread Uli Kusterer
Objective-C. Let me take this opportunity to once again shamelessly plug my C tutorial: http://masters-of-the-void.com which covers most of this (it doesn't cover pointers to functions and bitwise operations), especially memory management and pointers. Cheers, -- Uli Kusterer

Re: Bypassing Interface Builder

2008-05-15 Thread Uli Kusterer
t; of the File's Owner. In general, for a main NIB that will be type NSApplication, while for an NSDocument's NIB it will be MyDocument or whatever name you gave it when you created it. If you create your own NIB without using any of the existing templates, you may have to set

Re: Using NSThreads in command-line apps

2008-05-15 Thread Uli Kusterer
or user input... Check out NSRunLoop. I think if you create one of those at startup and run it, that will become your main loop and will take care of performSelectorOnMainThread: and the likes. Cheers, -- Uli Kusterer "The Witnesses of TeachText are e

Re: PlotIconRefInContext doesn't work

2008-05-17 Thread Uli Kusterer
nsform to a port that causes your drawing to end up off screen. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin re

Re: The challenge for Cocoa's on-line documentation

2008-05-17 Thread Uli Kusterer
and which won't be usable because they are hidden." The simple word 'visual' already clarifies the word 'elements' a lot, and the mention of shown, hidden and usable hammers home the point that this view consists of different parts that can be activated and

Re: Assertion failure in -[NSNextStepFrame lockFocus]

2008-05-17 Thread Uli Kusterer
accidentally messing with views and windows from another thread than the main thread. That was what created the inconsistency that later caused this exception on a completely unrelated thread. You wouldn't perhaps be messing with the GUI from the wrong thread by accident? Cheers, -

Re: Conditionally modifying NIBs?

2008-05-18 Thread Uli Kusterer
g bindings to show/hide non-applicable parts and having the window magically re- layout in response to that. Though in that case I often just embed the views in an NSView that have to be shown/hidden together, without loading them from separate NIBs. Cheers, -- Uli Kusterer "The Witness

Re: [OT] generating API docs

2008-05-19 Thread Uli Kusterer
so I'm not sure whether they can cope with ObjC 2.0 constructs etc. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not po

Re: Cocoa Training....

2008-05-21 Thread Uli Kusterer
that before going to BNR. If you then find it wasn't sufficient, you can still go to BNR. But of course you'll then have the book twice ... so in the worst case trying the book can get more costly than not trying it :-/ Cheers, -- Uli Kusterer "The Witnesses of TeachText are

Re: Trying to understand -- please help...

2008-05-21 Thread Uli Kusterer
of-the-void.com/book7.htm Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: Trying to understand -- please help...

2008-05-21 Thread Uli Kusterer
docs for the details, as the list ops don't like people rephrasing the memory management rules (because usually people forget one or another rule). Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de

Re: Quit iTunes

2008-05-25 Thread Uli Kusterer
Am 24.05.2008 um 17:49 schrieb Mr. Gecko: How would I quit iTunes. There is a way to launch it with NSWorkspace but how about quit? You could use the scripting bridge. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.

Re: Scope in an interface?

2008-05-25 Thread Uli Kusterer
thing, if foo has a base class that implements it, no matter what the class hierarchy looks like. This is why ObjC supports "duck typing". Great tool in the tool belt. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de

Re: Cocoa Classes from C++?

2008-05-28 Thread Uli Kusterer
in the init method I allocate the C++ object; One trick I've seen here is to have a #ifdef __cplusplus check there, and then to typedef the C++ types to void* for pure-C or pure- ObjC callers. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everyw

Re: CGContextSetRGBFillColor() off by one?

2008-05-29 Thread Uli Kusterer
? Have you tried switching to a different profile to see whether the differences ... errr... differ? Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list

Re: CGContextSetRGBFillColor() off by one?

2008-05-29 Thread Uli Kusterer
change the colors at some point. You'll have to investigate yourself whether you're providing the wrong color space at some point, or whether switching to a different color profile in system preferences changes anything, or whether it's something else. Cheers, -- Ul

Re: Drag-to-poof and tables

2008-06-03 Thread Uli Kusterer
this case it might be worth considering that one could just implement one's own dragging code. DnD is mainly an architecture for cross-application and cross-window dragging. If you need neither, it's not too difficult to do your own drawing during mouse tracking instead.

Re: Hillegass book memory question

2008-06-03 Thread Uli Kusterer
so there's no need to release objects that are singletons used throughout the app's life. Though I usually add a comment next to such lines: "// intentional 'leak': singleton." Cheers, -- Uli Kusterer "Th

Re: DirWatch

2008-06-05 Thread Uli Kusterer
, as far as I remember. Or was that when Finder started using it? Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post adm

Re: Converting a CFImageRef to a NSImage

2008-06-06 Thread Uli Kusterer
to add compile-time checks whether the right frameworks are linked to, or so. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please d

Re: Cocoa n00b frustrations

2008-06-07 Thread Uli Kusterer
nnections in the IB inspector that you can click to delete these "stale" connections. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@list

Re: Cocoa n00b frustrations

2008-06-07 Thread Uli Kusterer
STextField. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the mod

Re: Cocoa n00b frustrations

2008-06-07 Thread Uli Kusterer
Am 07.06.2008 um 21:05 schrieb Uli Kusterer: You sure it went bad? If you have IBOutlets and rename them, IB sometimes keeps entries for these connections in the NIB file. It does this since you may be copy-and-pasting in your source files, and it wouldn't want to trash that connection

Re: Cocoa n00b frustrations

2008-06-07 Thread Uli Kusterer
Am 07.06.2008 um 20:29 schrieb Andy Lee: NSLog( @"Current input source '%s'", [ name UTF8String ] ); Urrk. bad. You can't expect %s to be UTF8. Instead, do: NSLog(@"Current input source '%@'", name ); Cheers, -- Uli Kusterer "

Re: Converting a MenuRef to a NSMenu

2008-06-08 Thread Uli Kusterer
round isn't really possible. You can, however, read the MenuRef's item list and ("manually") create an NSMenu that looks the same. What exactly do you need this for? I couldn't find the original post your message seems to be referring to. Cheers, -- Uli Kusterer &

Re: Hillegass Book 3rd ed. ScreenShots differ?

2008-06-08 Thread Uli Kusterer
used Xcode 3.1, so my guess would be whatever window you're seeing is from that version. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple

Re: Hillegass Book 3rd ed. ScreenShots differ?

2008-06-08 Thread Uli Kusterer
start a ruckus on that. I doubt Aaron forgot to get that cleared before the release. They've given similar permissions to other people. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de __

Re: When is a document moved or renamed?

2008-06-15 Thread Uli Kusterer
n Alias to store the references to your files. Aliases both follow files when they're just moved, as well as have the ability to re-discover a file if it has been recreated. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everyw

Re: iMovie HD like splash screen

2008-06-17 Thread Uli Kusterer
f the splash is grey with rounded corners, how to do that? Use NSWindow's new -setContentBorderThickness:forEdge: method. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Coc

Re: Programatically placing panels inside a window

2008-06-17 Thread Uli Kusterer
tc. How would I do something like that programatically? Check out NSTabView (especially the properties that let you make it borderless and not show its tabs) and NSViewController. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere...&qu

Re: launching finder with optionschi

2008-06-17 Thread Uli Kusterer
t whether the option to open folders in a new window is on, and at least do it in that case. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple

Re: iMovie HD like splash screen

2008-06-17 Thread Uli Kusterer
o get anything other than black, it's been a while. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin r

Re: Newbie interface questions - multiple "modal" windows

2008-06-17 Thread Uli Kusterer
uff if you still need 10.4 support. I'm planning on doing a version that is modeled after NSViewController, but can't give an ETA. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___

Re: Newbie interface questions - multiple "modal" windows

2008-06-18 Thread Uli Kusterer
will get scaled up, too. Similarly, there are various kiosk modes, ways of hiding the menu bar (this kinda overlaps, but obviously not quite), and other conventions. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everyw

Re: disable manual resizing of NSWindow

2008-06-18 Thread Uli Kusterer
instead of removing the grow box? Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator co

Re: [Q] Is there a NSPathController-like custom controllerl for pre-MacOS X 10.5?

2008-06-25 Thread Uli Kusterer
also. If you mean an NSPathControl (AFAIK there's no controller for paths, not that I'd know what that would do), then there's a class by me that serves a similar puprose: http://www.zathras.de/angelweb/sourcecode.htm#UKFilePathView Cheers, -- Uli Kusterer "T

Re: What does 'thread safe' mean?

2008-06-27 Thread Uli Kusterer
o you often think your code is OK, but then it crashes reliably on every other Mac, just not on your development Mac. -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Co

Re: NSImageView and getting change events

2008-06-27 Thread Uli Kusterer
te an own class. I think the NSImageView sends its action to its target when its image gets changed that way. Have you tried that? Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Co

Re: NSString uppercaseString

2008-06-27 Thread Uli Kusterer
lse explicitly retain it). So, it is NOT guaranteed to be autoreleased, it is just "not owned by you". Please be careful about spreading inaccuracies not supported by the documentation. Cheers, -- Uli Kusterer "The Wit

Re: c++ exceptions in objective c call stack

2008-07-04 Thread Uli Kusterer
n't change the 32-bit runtime on the Mac for compatibility reasons. So the switch would be setting the architecture to 64-bit and removing the 32-bit architecture. But of course then your app won't run on Macs with 32-bit CPUs anymore. Cheers, -- Uli Kusterer "The Witnesses of

Re: Layer Backed Views and CoreAnimation neither animate nor stay in place

2008-07-05 Thread Uli Kusterer
#x27;ve seen so far, whenever a new layer is created, it is inserted in the front. The only way I've found to fix it is to set the zPosition of each view's layer manually. However, luckily that seems to work :-) Cheers, -- Uli Kusterer "The Witnesses of TeachText are everyw

Re: Using deprecated methods

2008-07-05 Thread Uli Kusterer
patibility, while your code can effectively assume it always uses the 10.5 APIs. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Plea

Re: c++ exceptions in objective c call stack

2008-07-05 Thread Uli Kusterer
p that marches through straight C code. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comment

Re: c++ exceptions in objective c call stack

2008-07-05 Thread Uli Kusterer
On 05.07.2008, at 19:52, Clark Cox wrote: If C++ code behaves oddly in the presence of unknown exceptions, then that C++ code is broken. :) Isn't that how code always is? ;-) Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http:/

Re: Toolbar code in separate Controller?

2008-07-05 Thread Uli Kusterer
, and asks each responder in the responder chain, beginning at the first responder. Have you inserted your toolbar controller in the responder chain so it actually gets asked whether these methods should be enabled? Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere...&qu

Re: Why can't I name a property `tag'?

2008-07-10 Thread Uli Kusterer
On 10.07.2008, at 21:29, Michael Ash wrote: I can't find any particular pattern to it, but it's clear that it's a bug, not a deliberate omission. I recommend you file a bug with Apple. Your warnings kinda remind me of type promotion. Ints get promoted to floats, etc.

Converting Windows RC to NIBs (was Re: Creating and App menu from Scratch)

2008-07-16 Thread Uli Kusterer
hings anyway, so you might as well go and recreate the UI and let IB's snap-to-guidelines do the job of initial layout. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mail

Re: Relaunch Finder (without AppleScript)

2008-07-16 Thread Uli Kusterer
as it takes no parameters, and is of class/type kCoreEventClass/kAEQuitApplication. Check the result, though, Finder may refuse to quit if it's busy, like aforementioned copy process. To launch Finder again after that, use NSWorkspace. Cheers, -- Uli Kusterer "The Witnes

Re: notification when app is moved

2008-07-17 Thread Uli Kusterer
n sure whether NSBundle doesn't cache its location, so you might get the old path back. But I guess since the kqueue tells you where it got moved, you could deduce the path anyway. Cheers, -- Uli Kusterer "The Witnesses of TeachText

Re: notification when app is moved

2008-07-17 Thread Uli Kusterer
On 17.07.2008, at 23:13, Jean-Daniel Dupas wrote: Correct me if I'm wrong, but kqueue will not work if you move a folder that contains the applications (and not the app directly). You're right, completely forgot about that. Cheers, -- Uli Kusterer "The Witnesses of TeachText

Re: notification when app is moved

2008-07-18 Thread Uli Kusterer
sible to move an app while it is running. The more people file bugs on an issue, the more likely it is that Apple will actually fix them. And this is a Mac. Users shouldn'thave to think about geeky things like that, the software should just do the right thing. Cheers, -- Uli Kus

Re: WebView load background color.

2008-07-19 Thread Uli Kusterer
n existing thread on a mailing list, or your message will end up sorted into the original thread, and people who use threaded view won't see it unless they read the original thread. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everyw

Re: substitute class at runtime?

2008-07-19 Thread Uli Kusterer
: @"NS [EMAIL PROTECTED]",currentHTMLTagName]) to implement your web browser unless you want to cope with people creating NSXMLElements for you to get your browser to crash... :-) Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de _

Re: How to get cursor text from a Mac window

2008-07-19 Thread Uli Kusterer
(See NSUIElement and LSBGOnly) to present these windows. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin r

Re: +defaultAnimationForKey vs. -animationForKey

2008-07-19 Thread Uli Kusterer
management. In threaded newsreaders, this will just get hidden under that thread's headline, and nobody will ever see your message who would know the answer. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http:/

Re: NSMutableDictionary autorelease chrashes application

2008-07-19 Thread Uli Kusterer
t; in the context where an object is not added to a pool, however, leads to stale pointers and memory bugs, and may even lead to memory corruption and/or crashes. So I think I'll take an analogy hobbling in on its last leg over a label that leads to wrong code any day. Cheers, --

Re: NSMutableDictionary autorelease chrashes application

2008-07-19 Thread Uli Kusterer
oblems like these, look up James Dempsey's "Designated Initializer" song on YouTube. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@li

Re: draw string with ellipsis

2008-07-28 Thread Uli Kusterer
On 28.07.2008, at 08:23, Vitaly Ovchinnikov wrote: Thanks, exactly what I need. Btw, is there any easy way to center this line vertically? Or I need to measure it's height and offset it vertically myself? NSParagraphStyle -setAlignment: ? Cheers, -- Uli Kusterer "The Wi

Re: draw string with ellipsis

2008-07-28 Thread Uli Kusterer
On 28.07.2008, at 17:22, Vitaly Ovchinnikov wrote: This one aligns string horizontally, I need vertical alignment. Well, OK, will measure it's height and center it myself. Oh, sorry. Wasn't quite awake when I wrote that, apparently. Yeah, I think vertical is up to you. Chee

Re: Properties and memory management

2008-08-05 Thread Uli Kusterer
rs will be NIL. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Conta

<    1   2   3   4   5   6   7   8   9   >