Re: Cocoa window stops responding

2015-04-27 Thread Uli Kusterer
in particular has often screwed up drawing in such a way that the entire window just became a white sheet. I presume you’ve done the usual, i.e. ran Analyze and fixed all it complained about, as well as Instruments. Cheers, -- Uli Kusterer “The Witnesses of TeachText

Re: New information. Was: Re: Weird UITableView problem

2015-04-29 Thread Uli Kusterer
On ٢٨‏/٠٤‏/٢٠١٥, at ١٩:٥٧, William Squires wrote: > If I select "iPhone Retina (4-inch)" (again in the Xcode 5 project), I no > longer get all 20 cells, and - in fact - the last cell visible, "Dwalin", is > cut off so you can't see all of the cell, even with the (table) view scrolled > down al

Re: Where and how do I know a save completed successfully?

2015-04-29 Thread Uli Kusterer
On ٢٩‏/٠٤‏/٢٠١٥, at ١١:٠٨, Charles Jenkins wrote: > I think it most likely I’m doing this in the wrong place. But what’s the > right place? Overriding NSDocument’s setFileModificationDate() would seem > like the best way, but the NSDocument Programming guide says messages are > sent to setFileU

Re: Spinning the busy indicator

2015-05-01 Thread Uli Kusterer
that, and maybe you have an issue where, after a while, somehow they don’t fire at all even after tracking? Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Spinning the busy indicator

2015-05-01 Thread Uli Kusterer
, so that when one blocks, a second thread can get swapped in *at the hardware level* and get cycles. Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: Dumb question about view controllers

2015-05-04 Thread Uli Kusterer
On 02 May 2015, at 20:18, William Squires wrote: > This is sort of in response to the thread, "Parent/child view controllers: > when shall we use it?". > > Since, in both iOS and Mac OS X, a control IS a view, why don't controls have > their own dedicated view controllers? i.e. If I make a new

Re: Grabbing window - The contents of this window cannot be shared

2015-05-06 Thread Uli Kusterer
On 06 May 2015, at 14:09, Andreas Höschler wrote: > Hi all, > > I have developed an app with an NSWindow containing a NSScrollView subclass > for the document window. When I ry to grab this window with Grab.app for > documentation purposes, Grab.app tells me > > The window could not be c

Re: Help: NSScrollView is resizing its documentView down to (0, 0)

2015-05-06 Thread Uli Kusterer
On 05 May 2015, at 18:26, Jens Alfke wrote: > I haven't done much AppKit work in a while. Right now I have a small app > where I'm trying to do something very simple: put a custom NSView in a window > and make it scrollable. The view determines its own frame size based on the > content it needs

Re: Help: NSScrollView is resizing its documentView down to (0, 0)

2015-05-06 Thread Uli Kusterer
On 06 May 2015, at 03:21, Jens Alfke wrote: >> Constrain your view to the top, right and left of the clipview but not the >> bottom. I have never had to do this. What are you trying to fix with this? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple

Re: Help: NSScrollView is resizing its documentView down to (0, 0)

2015-05-06 Thread Uli Kusterer
> On 06 May 2015, at 17:41, Roland King wrote: > > >> On 6 May 2015, at 23:39, Uli Kusterer wrote: >> >> On 06 May 2015, at 03:21, Jens Alfke > <mailto:j...@mooseyard.com>> wrote: >>>> Constrain your view to the top, right and left of th

Re: Aggravation trying to implement NSValueTransformer subclasses in Swift

2015-05-12 Thread Uli Kusterer
On 13 May 2015, at 00:38, Quincey Morris wrote: > static var keyPathsForValuesAffectingMessageIsEmpty: NSSet {return NSSet > (object: "messageIsEmpty”)} I think at least one of those should be “message” instead of “messageIsEmpty” … ? Cheers, -- Uli Kusterer “The Witnesses of Te

Re: How to draw a NSView on top of a WebView and don't get overriden trying

2015-05-14 Thread Uli Kusterer
herwise protected. If you receive it in error please inform us and then > delete it from your system. You should not copy it or disclose its contents > to anyone. Messages sent to and from Watu may be monitored to ensure > compliance with our internal policies and to protect our business

Re: How to draw a NSView on top of a WebView and don't get overriden trying

2015-05-16 Thread Uli Kusterer
Tick the checkmark next to your view in the Layers inspector in IB, or call setWantsLayer: YES. On 14 May 2015, at 14:30, Juanjo Conti wrote: > I've tried 2 and didn't work. How do I do 1? > > On Thu, May 14, 2015 at 7:46 AM, Uli Kusterer > wrote: > >> Two thin

Re: How to draw a NSView on top of a WebView and don't get overriden trying

2015-05-16 Thread Uli Kusterer
lah%40karelia.com >> >> This email sent to mabdul...@karelia.com > > > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. >

Re: Optionals? A better option!

2015-05-16 Thread Uli Kusterer
oftware.com/talks/wat Admittedly, that’s exacerbated by using a language with transparent type conversion, but it’s still a bad idea. Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras.de ___ Cocoa-dev mailing list (Cocoa-dev

Re: Generate a _CFURLAliasData entry for Finder toolbar

2015-05-16 Thread Uli Kusterer
inder. This way, you can also have several service entries that directly trigger different actions in your application. Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@

Re: Tracking the retain count

2015-05-21 Thread Uli Kusterer
his gives me, I probably wouldn’t do it anymore for shipping code. Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or modera

Re: Disabling auto-synthesis of property accessors.

2015-05-22 Thread Uli Kusterer
nobody is using yet for the backing ivar, if you have some that use _foo, or mFoo and others that just use foo. Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.

Re: Disabling auto-synthesis of property accessors.

2015-05-22 Thread Uli Kusterer
On 22 May 2015, at 14:49, Alex Zavatone wrote: > Thanks for the wake up call, UIi! I’m sorry. I’d much rather get you the news that you can sleep in :-) Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras

Re: Custom NSView subclass - expressing the fact that a property affects the displayed image

2015-05-26 Thread Uli Kusterer
ne if the Static Analyzer could be made to understand KVO and threading and complain about such uses. Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Custom NSView subclass - expressing the fact that a property affects the displayed image

2015-05-27 Thread Uli Kusterer
Sounds like a heuristic that might work if it doesn’t give too many false positives and is kept conservative, though. Doesn’t have to catch all cases, as long as it catches a few and avoids false positives. Cheers, -- Uli Kusterer “The Witnesses of TeachText are ev

Re: Disabling auto-synthesis of property accessors.

2015-05-27 Thread Uli Kusterer
me way as Apple's. If they don’t use the retain optimization, you’ll want to verify that it performs within your constraints (by profiling) and if they don’t, maybe add this optimization. Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http:/

Re: [PSA] OSStatus.com -- Error code lookup

2015-05-31 Thread Uli Kusterer
ame issue trying to link to an individual error code. You may have to go the Amazon route and write something like “ŸÉŠ” for the Unicode trick? Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras.de ___ Cocoa-dev mailing li

Re: [PSA] OSStatus.com -- Error code lookup

2015-06-01 Thread Uli Kusterer
On 31 May 2015, at 20:12, Ben Kennedy wrote: > Pardon my thickness, but what is the purpose of the "utf8" parameter anyway? > Removing it from the query string appears to have no material impact on the > results: > > http://www.osstatus.com/search/results?search=-43 >

Re: Understanding the "declaration of instance variables in the interface is deprecated" warning.

2015-06-03 Thread Uli Kusterer
> On 03 Jun 2015, at 18:46, Mark Wright wrote: > > >> On 03 Jun 2015, at 17:08, Alex Zavatone wrote: >> >> >> One point I haven't looked at is, "if @properties are declared within the >> @implementation or the class extension, are they private? And if so, >> shouldn't they be preceded wit

Re: Understanding the "declaration of instance variables in the interface is deprecated" warning.

2015-06-03 Thread Uli Kusterer
On 03 Jun 2015, at 19:06, Alex Zavatone wrote: > On Jun 3, 2015, at 12:46 PM, Mark Wright wrote: > >> This is important and is all about *scope*. >> >> A class’s properties are only public if they’re in the header. > > Exactly. > > With that said, why do we not have a convention with propertie

Re: Understanding the "declaration of instance variables in the interface is deprecated" warning.

2015-06-03 Thread Uli Kusterer
On 03 Jun 2015, at 19:09, Alex Zavatone wrote: > On Jun 3, 2015, at 12:59 PM, Uli Kusterer wrote: > >> So you're not supposed to use the underscore convention even for your >> private ivars, as Apple could add secret stuff to NSObject or any other base >

Re: Understanding the "declaration of instance variables in the interface is deprecated" warning.

2015-06-04 Thread Uli Kusterer
make a private *property* (as opposed to a private ivar), you can’t use an underscore prefix, because that would implicitly generate a getter *method* with an underscore. Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras.de ___

Re: Understanding the "declaration of instance variables in the interface is deprecated" warning.

2015-06-04 Thread Uli Kusterer
.accessor (i.e, dot notation); [somePointer accessor] and > [somePointer setAccessor:aNewValueGoesHere]; and a direct call to > objc_msgSend(). There’s also key-value coding, i.e. [obj valueForKey: @“accessor”] and [obj setValue: @1 forKey: @“accessor”], and the implicit occurrences thereof i

Integrating C++ into Swift

2015-06-13 Thread Uli Kusterer
code in ObjC. Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://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 moderators

Re: Language options: Objective-C, Swift, C or C++?

2015-06-13 Thread Uli Kusterer
ObjC code to become better, just due to new design patterns I’ve been exposed to. Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Language options: Objective-C, Swift, C or C++?

2015-06-13 Thread Uli Kusterer
Smalltalk). Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://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 moderators at

Re: Integrating C++ into Swift

2015-06-13 Thread Uli Kusterer
> On 13 Jun 2015, at 12:26, Quincey Morris > wrote: > > On Jun 13, 2015, at 12:01 , Uli Kusterer wrote: >> >> Right now, I get the impression that, given I’d have to use ObjC for >> bridging anyway, I might as well leave the GUI layer code in ObjC. > >

Re: Language options: Objective-C, Swift, C or C++?

2015-06-14 Thread Uli Kusterer
On 13 Jun 2015, at 15:33, Maxthon Chan wrote: > I don’t think Objective-C will ever be shut down since Swift also links to > libobjc runtime library, which means Swift is, technically, a dialect of > Objective-C with some syntactic sugar and compile-time checks allowing some > more advanced pro

Re: Language options: Objective-C, Swift, C or C++?

2015-06-14 Thread Uli Kusterer
-02vhsdVk Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://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 moderators at cocoa-d

Re: NSFontPanel for a modal window

2015-06-14 Thread Uli Kusterer
On 13 Jun 2015, at 21:30, Kurt Sutter wrote: > It does not help — the panel i actually already in front when it appears, and > calling -orderFront: does not help. It only works when it is the key window. Coming late in here: Have you remembered to uncheck “visible on launch” in the XIB for that

Re: NSFontPanel for a modal window

2015-06-14 Thread Uli Kusterer
> On 14 Jun 2015, at 14:32, Uli Kusterer wrote: > > On 13 Jun 2015, at 21:30, Kurt Sutter wrote: >> It does not help — the panel i actually already in front when it appears, >> and calling -orderFront: does not help. It only works when it is the key >> window. >

Re: Action Menu

2015-06-18 Thread Uli Kusterer
> On 18 Jun 2015, at 19:14, Raglan T. Tiger wrote: > > The HIGs says > > To create an Action menu in Interface Builder use the control that’s > appropriate for the window area. Then, in the Attributes pane of the > inspector, specify NSActionTemplate for the image. > > > What would one cho

Re: How to check if super exists if it doesn't without throwing an exception?

2015-06-19 Thread Uli Kusterer
On 18 Jun 2015, at 22:58, Dave wrote: > Sounds like someone is releasing “Self” when they shouldn’t, but “super” > isn’t an object in it’s own right, it’s part of “self”, its just they it > discounts any methods of “self” and uses the methods from the Class tree that > is has inherited from. D

Re: Autosave + non-file URL's == trouble

2015-06-21 Thread Uli Kusterer
On 22 Jun 2015, at 00:02, Charles Srstka mailto:cocoa...@charlessoft.com>> wrote: > I’ve used NSDocument with non-file URLs for years, just not with autosave. (I > really, really wish that autosavesInPlace were an instance method instead of > a class method, so I could just have it return true co

Re: Why would scroll events not arrive?

2015-06-26 Thread Uli Kusterer
> On 26 Jun 2015, at 09:47, Martin Wierschin wrote: > > Hello everyone, > > The quick overview: sometimes after working in my OSX app, scroll wheel > events are no longer being dispatched to the key window's first responder. In > fact, after overriding -[NSApplication sendEvent:] I can see th

Re: Edit menu localisation, default application menu

2015-07-11 Thread Uli Kusterer
On 11 Jul 2015, at 09:39, Aandi Inston wrote: > It turns out, and I'm sure this will surprise nobody but me, that for the > copy/paste/cut keyboard commands to work in Cocoa my app needs to have a > suitable Edit menu with copy/paste/cut menu items and keyboard equivalents. > My question is about

Re: Dependency tracking with asset catalog and interface builder compilers

2015-07-13 Thread Uli Kusterer
This is not the Apple Developer Tools team. This is a mailing list where developers using Apple's Cocoa frameworks hang out. > On 12 Jul 2015, at 21:48, Jake Petroules wrote: > > Apple Developer Tools Team, > > I'm doing some work integrating Interface Builder tools like the asset > catalog c

Re: C Sharp?

2015-07-17 Thread Uli Kusterer
On 14 Jul 2015, at 19:48, Dave wrote: > Does anyone know of a tool/framework that allows C# code to be compiled and > called from Cocoa? Dave, are you aware of Elements (http://www.elementscompiler.com/elements/) ? It's not quite your solution, but it allows creating a C# app that calls ObjC

Re: Drag highlight problems

2015-07-20 Thread Uli Kusterer
On 20 Jul 2015, at 04:36, John Brownie wrote: > Everything works correctly except for the drag highlight. Sometimes, and I > haven't been able to work out what the sequence is, the drag highlight will > be left on after the drop happens. The problem seems to be some sort of race > condition, bu

Re: OsX - HTTP resource load blocked

2015-07-20 Thread Uli Kusterer
On 19 Jul 2015, at 10:47, Marc Danguy wrote: > a strange one : Code Signature Invalid Do you maybe have a shell script build phase that modifies the bundle after it has been signed ? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do n

Re: Has anyone used Dubrovnik?

2015-07-21 Thread Uli Kusterer
brary it works? BTW, this really sounds more like a Dubrovnik issue (or an Xcode issue) than a Cocoa thing, have you tried their mailing lists or the Xcode list? Cheers, -- Uli Kusterer "The Witnesses of TeachtText are everywhere..." ___

Re: Dubrovnik Sucesss!

2015-07-22 Thread Uli Kusterer
t;I've solved it" and nothing more. Maybe a Stack Overflow question where you post the answer with it immediately or so? Cheers, -- Uli Kusterer "The Witnesses of TeachtText are everywhere..." ___ Cocoa-dev mailing list (Cocoa-d

Re: Unique ID for a Window?

2015-07-29 Thread Uli Kusterer
ble. OTOH, also keep in mind that an application might close a window and re-open it instead of just hiding and showing it, which might change its window number. Cheers, -- Uli Kusterer "The Witnesses of TeachtText are everywhere..." ___

Re: Regarding these Olivia messages. Can we do something about the list security?

2015-07-30 Thread Uli Kusterer
or there would be a sender address subscribed to the list that could be unsubscribed to cause future bounces. That sounds like an actionable approach. List admins, is this a possible setup for whatever list management software you're using? Cheers, -- Uli Kusterer "The Witness

Re: WKWebView Allow file selection button to select directories

2015-07-30 Thread Uli Kusterer
und (just drag-and-drop onto the button instead). Maybe you can theme it so it is just a "drop here" graphic instead of a button? Cheers, -- Uli Kusterer "The Witnesses of TeachtText are everywhere..." ___ Cocoa-dev mailing

Re: Programmatically switching text fields

2015-08-04 Thread Uli Kusterer
could of course be related to that. Cheers, -- Uli Kusterer "The Witnesses of TeachtText are everywhere..." ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Improve performance of data structure saved to disk

2015-08-06 Thread Uli Kusterer
NSCopying like a key should? How did you implement those? How are you looking up your objects (if that is what's slow)? Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://stacksmith.org ___ Cocoa-dev mailing

Re: Swift enums and NSNotificationCenter

2015-08-06 Thread Uli Kusterer
load-time by adding to the last value of the base-enum, but then you lose any guarantees about the rawValue of an enum ... it just becomes really messy really quick, and still has a tendency to break when the base-enum fills up its storage. For cases like that you might as well use a string property,

Re: Improve performance of data structure saved to disk

2015-08-08 Thread Uli Kusterer
okie is set or deleted. So, how large is the biggest cookie? What's the average size? If your cookies are large, it might be better to just individually serialize each cookie to its own file and then only write out ones that have actually changed. Cheers, -- Uli Kusterer "The Witne

Re: ARC and Manual Memory Management

2015-08-10 Thread Uli Kusterer
aware of is if you need to port to a platform that doesn't support libArclite (like really old Mac/iOS versions). Cheers, -- Uli Kusterer "The Witnesses of TeachtText are everywhere..." ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.

Re: ARC and Manual Memory Management

2015-08-10 Thread Uli Kusterer
> On 10 Aug 2015, at 21:12, Dave wrote: > > >> On 10 Aug 2015, at 19:11, Uli Kusterer wrote: >> >> On 10 Aug 2015, at 13:59, Dave wrote: >>> Has anyone come up with a way of having the source code support both ARC >>> and Manual Memory Managemen

Re: Private Methods

2015-08-18 Thread Uli Kusterer
public API, or maybe even just of getters and setters. OTOH large classes are very likely to have more methods "under the hood" to implement all the functionality they provide. Cheers, -- Uli Kusterer "The Witnesses of TeachtText are everywhere..."

Re: "Format not a string literal and no format arguments"

2009-09-01 Thread Uli Kusterer
"%@") instead of passing a string. It seems the only case it's really a bug is NSLog(), because there's no variant of NSLog() without a format string, and as someone else posted here, it's apparently an undesired interaction with -fno- constant-strings, so file a bug.

Re: "Format not a string literal and no format arguments"

2009-09-01 Thread Uli Kusterer
string matches the parameters. Got lots of warnings about e.g. using %d for a long and stuff like that. This is a comparatively new thing, though. It was new in Leopard or Snow Leopard, but wasn't available before. Cheers, -- Uli Kusterer "The Witnesses of TeachTex

Re: Snow Leopard bug?

2009-09-01 Thread Uli Kusterer
obably use 'defaults write' to set the flag differently for the main recents menu and each app. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@l

Re: Build Issue?

2009-09-01 Thread Uli Kusterer
you could post? 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. C

Re: Image Thresholding

2009-09-04 Thread Uli Kusterer
correcting any mistakes you might have made that we can spot. Also, what do you mean by "binary image"? A black-and-white image? An image file? TIFF? JPEG? PNG? Have you looked at CoreImage, CoreGraphics, ImageIO documentation? Cheers, -- Uli Kusterer "The Witnesses of

Re: Custom Window not receiving "full" shadow

2009-09-05 Thread Uli Kusterer
27;ve included images below: Is this perhaps a non-activating panel? Only the active window (main, or key, I think) gets the bigger shadow. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___

Re: Distinguishing between return and enter in NSTextField

2009-09-05 Thread Uli Kusterer
nter symbol is small below 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 admin requests or moderator comments to th

Re: Subversion and Interface Builder

2009-09-12 Thread Uli Kusterer
lled Project Builder when they made that work with NIBs, .xcodeproj files etc. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: KVO can be unsafe in -init?

2009-09-12 Thread Uli Kusterer
terest to you: http://zathras.de/blog-defensive-coding-in-objective-c.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

Re: adding a page curl transition

2009-09-15 Thread Uli Kusterer
scary than your window-based code, and could even be put into a generic, re-usable controller class that creates the tab view around your items and duplicates them on two tabs, and its accessors could change the currently visible view when you're not in a context where you want to animate

Menu shortcuts without modifiers?

2009-09-17 Thread Uli Kusterer
till have it displayed? Is there a way to fake the shortcut, so I can do the actual handling at a different level? (Carbon lets you set the menu shortcut glyph separately from the actual shortcut, for example). Anyone have an idea for a solution? Cheers, -- Uli Kusterer "The W

Re: Running Safari from application

2009-09-18 Thread Uli Kusterer
On 18.09.2009, at 10:26, Bartosz Białecki wrote: The problem is that the safari is not launched. If I put in showPageInSafari function openURL: [NSURL URLWithString: @"http://www.example.com/index.php";] then it works. Do you know what is wrong? Could it be that the path is not accessible fo

Re: init for immutable classes

2009-09-18 Thread Uli Kusterer
and dealloc, so I don't think there's any need for mutators (accessors, for reading, are likely needed anyway). Cheers, -- Uli Kusterer "The witnesses of TeachText are everywhere..." ___ Cocoa-dev mailing list (Cocoa-dev@li

Re: 2 simple questions

2009-09-18 Thread Uli Kusterer
that, and if that fails, you could use a program like FSEventer to find out which file Finder writes this info to (it's probably a plist and it probably writes a file path or Alias data ("NSURL bookmark data") to that plist). Cheers, -- Uli Kusterer "The witnesses of Teach

Re: Menu shortcuts without modifiers?

2009-09-18 Thread Uli Kusterer
a key equivalent. Ashley, Thanks for the suggestion, hadn't seen that one, but sadly that doesn't work It appears that when I return NO, the OS will scan the actual menu items and trigger them nonetheless. :-( Cheers, -- Uli Kusterer "The witnesses of Teac

Re: Running Safari from application

2009-09-18 Thread Uli Kusterer
On 18.09.2009, at 18:52, Bartosz Białecki wrote: I think so too. So do you know maybe another solution how to open local html file with Safari? No. But you could always use a web view instead? Or maybe there's some sort of shared folder somewhere? Cheers, -- Uli Kusterer "The

Re: Syntax Coloring?

2009-09-19 Thread Uli Kusterer
, and not the entire file each time. It also uses custom attributes to indicate ranges of syntax-specific stuff, so you can detect whether you just chopped the ending indicator of a quoted string or whatever. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere...&qu

Re: Movable Document Modal Dialogs

2009-09-19 Thread Uli Kusterer
es, things that have been made window- modal can easily be made non-modal, with some careful coding. If you could provide more detail, maybe we could help better. Feel free to take this to the Mac-GUI-Dev mailing list, by the way (URL in the footer). Cheers, -- Uli Kusterer "The Wi

Re: Any way to tell why a window is closing?

2009-09-21 Thread Uli Kusterer
your making, and then from that call the original action. Cheers, -- Uli Kusterer "The witnesses of TeachText are everywhere..." ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comme

Re: Class for external monitor?

2009-09-21 Thread Uli Kusterer
direction. Thanks Depends on what you really want to do. Since you didn't say, I can only provide vague clues and hints: There is NSScreen and CGDirectDisplay &co. If you want lower-level info, you'll be going a lot lower level and looking at IOKit. Cheers, -- Uli Ku

Re: Menu shortcuts without modifiers?

2009-09-21 Thread Uli Kusterer
the pre-Macoun conference hoo-hah that I forgot about that. Cheers, -- Uli Kusterer Sole Janitor http://www.the-void-software.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the li

Re: Class for external monitor?

2009-09-21 Thread Uli Kusterer
Am 21.09.2009 um 19:08 schrieb Jacob Schwartz: Yeah, monitor without menu bar will work great, thank you and thanks to Graham, Keep in mind that there may be more than two screens. Put a second GPU in a Mac Pro and you can already have 4 screens. Cheers, -- Uli Kusterer "The Witness

Re: Tablet events from ordinary touchpad?

2009-09-21 Thread Uli Kusterer
ng special needed. See if anything in this article from when I last did pressure-sensitivity helps: http://zathras.de/blog-wacom-pens-stirring-cocoa.htm For one thing, it has a link to WACOM sample code that may be useful. Cheers, -- Uli Kusterer "The Witnesses of TeachText are ever

Re: Creating a radar sweep effect

2009-09-28 Thread Uli Kusterer
six frames, and the expensive drawing only happens once. Play with the layer alpha to have them fade out. Haven't tried this, but it's something I'd attempt if I was pressed for performance. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere...&qu

Re: ScreenSaverView gets instantiated several times

2009-10-05 Thread Uli Kusterer
our bundle could be retaining one of those objects. Unloading it would make your application crash, because suddenly the code the class points to or the TEXT section from which the constant string came would be gone. Cheers, -- Uli Kusterer "The wit

Re: Bundle is not using icon or CFBundleIdentifier

2009-10-05 Thread Uli Kusterer
t justuses the generic OS icon. You need to specify the icon in the CFBundleDocumentTypes of your application. Only certain bundles get scanned for an Info.plist. Documents can contain whatever they want, so the OS gets all information for them from the app that owns them. Cheers, -- Ul

Re: Keeping NSWindow below all other windows

2009-10-05 Thread Uli Kusterer
ter choice. Cheers, -- Uli Kusterer "The witnesses of TeachText are everywhere..." ___ 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

[MEETING] CocoaHeads Munich tonight!

2009-10-07 Thread Uli Kusterer
Hi, CocoaHeads Munich, Germany will be meeting again tonight, Thursday 8 Oct. at 20:00 at the Park Cafe. Hope to see many of you there. -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.masters-of-the-void.com

Re: Autorelease pool

2009-10-07 Thread Uli Kusterer
On 08.10.2009, at 00:12, Dave Carrigan wrote: Read and re-read the memory management rules until you start dreaming about them. Then you will start on the path to enlightenment :-) Wax on ... wax off. Wax on ... wax off. ... ... sorry, wrong kind of enlightenment. -- Uli Kusterer

Re: Programming Style: Method Definition with or without a semicolon.

2009-10-16 Thread Uli Kusterer
heses,bracketsandarguments so I have a hope in hell of reading the code later. Agree 2000%! But you don't have to let Xcode frustrate you like this - you can define your own templates for all of the stubs it inserts. How? Where?!!! :-D -- Uli Kusterer "The Witnesses of TeachText

Re: debugging cursors

2009-10-16 Thread Uli Kusterer
he same vein that may help you find a way to improve your question so we can actually answer it: http://www.mikeash.com/getting_answers.html Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://groups.yahoo.com/group/mac-gui-dev/ ___

Re: Programming Style: Method Definition with or without a semicolon.

2009-10-17 Thread Uli Kusterer
On 16.10.2009, at 11:43, Graham Cox wrote: On 16/10/2009, at 7:12 PM, Uli Kusterer wrote: But you don't have to let Xcode frustrate you like this - you can define your own templates for all of the stubs it inserts. How? Where?!!! :-D http://arstechnica.com/apple/guides/2009/04/coco

Re: Programming Style: Method Definition with or without a semicolon.

2009-10-19 Thread Uli Kusterer
On 18.10.2009, at 04:35, Ken Thomases wrote: On Oct 17, 2009, at 2:24 AM, Uli Kusterer wrote: What do project templates have to do with code completion? The comments don't mention how to customize code completion stubs either. Did I overlook something? For controlling code compl

Re: Dirty rects getting merged together makes for inefficient drawing

2009-10-20 Thread Uli Kusterer
rect that encloses all the dirty rects. drawRect: does not get called for each redraw rect. If you want the individual sub-rects, use getRectsBeingDrawn:count: and loop over all those rects and draw the individual parts. Cheers, -- Uli Kusterer &q

Re: Dirty rects getting merged together makes for inefficient drawing

2009-10-20 Thread Uli Kusterer
never imagined it would take so much time just to draw the one column I dirtied. This may help to optimize after all: http://zathras.de/blog-cocoa-text-system-everywhere.htm Cheers, -- Uli Kusterer "The witnesses of TeachText are every

Re: Dirty rects getting merged together makes for inefficient drawing

2009-10-20 Thread Uli Kusterer
tests, - needsToDrawRect is fine. Oh, right. Sorry. Mixed that up. Cheers, -- Uli Kusterer "The witnesses of TeachText are everywhere..." ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: Dirty rects getting merged together makes for inefficient drawing

2009-10-20 Thread Uli Kusterer
on't need to measure it, is there any speedup doing things yourself? If you draw the same bunch of strings repeatedly, and you know their lifetime, you can definitely make them draw faster. Cheers, -- Uli Kusterer "The witnesses of TeachText are everywhere..." ___

Re: Binding problem : getter not called when property change

2009-11-02 Thread Uli Kusterer
. You're actually muddling the controller/view layer a bit here. If you want different *display* of NIL, the view should really be doing that. So overriding drawRect: might be a better solution. Cheers, -- Uli Kusterer "The witness

Re: Apple Remote Control Wrapper sends same button ID for all buttons.

2009-11-03 Thread Uli Kusterer
ts of fixes, workarounds and compatibility stuff: http://www.iospirit.com/developers/ Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.lookandfeelcast.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: How to imitiate mouse move programmatically? [NSApp postEvent:atStart:] does not work...

2009-11-03 Thread Uli Kusterer
mean they can't update their internal "selected part" instance variable). Cheers, -- Uli Kusterer "The witnesses of TeachText are everywhere..." ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post a

Re: [Moderator] Re: Apple Remote Control Wrapper sends same button ID for all buttons.

2009-11-06 Thread Uli Kusterer
c API. I'm not trying to be contrary or anything, I'm simply trying to figure out which aspect of that code should have set off warning bells that it didn't. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..."

Re: Best approach to write an uninstaller for osx

2009-11-22 Thread Uli Kusterer
lly get deleted when they're closed, but all the resources in your file package will generally only be opened as needed, and will thus be deleted immediately. If a resource your app needs to save the currently open file or that's otherwise needed has already been deleted, you could co

<    1   2   3   4   5   6   7   8   9   >