Re: Xcode warning from linking to a third-party framework in both app and in framework included in app?

2015-08-25 Thread Uli Kusterer
lasses etc.), but that's hairy to do consistently without missing one, especially if it's not your code. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://stacksmith.org ___ Cocoa-dev mailing list (Cocoa

Re: Mantaining legacy APIs in a framework

2015-09-02 Thread Uli Kusterer
r base class implements -foo:, and if yes, swizzle in a compatibility implementation of -foo: or one of -foo:withBar: that calls -foo:? Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://stacksmith.org ___

Re: best way to implement a clickable grid?

2015-09-14 Thread Uli Kusterer
That way the clipping happens on the GPU and the CPU doesn't constantly need to update the entire image and upload it onto the GPU. IIRC the contentsRect property is what I used to tell the GPU how to clip the drawing in the "selected" layer. Cheers, -- Uli Ku

Re: best way to implement a clickable grid?

2015-09-14 Thread Uli Kusterer
nt Accessibility for it. You can probably just give a number indicating the level, but otherwise you might have to do whatever NSSlider does to expose itself to Accessibility. Or maybe you could just subclass NSSlider, replace all the tracking and drawing code, and that way get Accessibility for fre

Re: Identifying a specific Mac model

2015-09-16 Thread Uli Kusterer
gt; 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: > https://lists.apple.com/mailman/opt

Re: changing the name of my webview

2015-11-16 Thread Uli Kusterer
it. Or do you mean the HTML title tag? Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://stacksmith.org ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comme

Re: CGContextClipToRects: invalid context 0x0.

2015-12-18 Thread Uli Kusterer
ne of this helps, a common occurrence of weird behaviour like this is also sometimes screwing up internal state by using thread-safe API that is not documented to support being used from more than one thread at once, or API that's not safe to use from non-main threads at all, from several

Re: Best way to get a file path for presentation to the user

2015-12-18 Thread Uli Kusterer
in mind that display names are HFS-style names that may contain slashes, so using a slash as a path separator with those can lead to wrong display. Check out what the "Open recent" submenu does with file names for a good idea to follow if you can't use a path control. Particularly h

Re: Best way to get a file path for presentation to the user

2015-12-20 Thread Uli Kusterer
interest when displaying it, e.g. having the path display just start at the home folder and using the file icon to have the user recognize it is a user folder. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://stacksmith.org ___

Re: Finder-like user interface?

2015-12-28 Thread Uli Kusterer
th today's Finder (I think it's more like 10.5's or so), and if I was doing this class again today, I'd probably try to switch to using CALayers instead of cells. Also, of course the IB plugin stuff in there is no longer useful. But the main view and cell classes proper should be a

Re: applicationSupportDirectory access for admin and standard users

2015-12-28 Thread Uli Kusterer
hen I check the NSFileManager.h header in the 10.11 SDK that seems to be true: NSFileManager doesn't declare an applicationSupportDirectory method, it seems. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://stacksmith.org _

Re: Getting the final value from an NSSlider drag

2015-12-29 Thread Uli Kusterer
und to how long the user can hold the > mouse button. (With assistive technologies, the user doesn't even have to be > actually holding anything for the duration.) It shouldn't. performSelector:afterDelay: schedules using NSRunLoopDefaultMode, while the slider uses NSEventTrackingRun

Re: Any way to intercept the URL-opening mechanism on OS X?

2016-01-03 Thread Uli Kusterer
Ls. > > Rather than a plug-in, would a Safari extension do what you need? You might > take look at > https://developer.apple.com/library/safari/documentation/Tools/Conceptual/SafariExtensionGuide/WorkingwithWindowsandTabs/WorkingwithWindowsandTabs.html You could probably modify Webera

Re: Obj-C - your thoughts on hiding data members?

2016-01-28 Thread Uli Kusterer
nderscore-in-a-c-identifier). Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://stacksmith.org ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comment

Re: ScalableUserInterface.framework

2016-02-15 Thread Uli Kusterer
inally, did you just update Xcode or change the SDK? Maybe the current SDK is now 64-bit only, but your app is still 32/64, and so it won't link because it can't find the 32-bit linking info anymore. Cheers, -- Uli Kusterer "The Witnesses of

Re: ARC code in a non ARC app. iOS

2016-02-25 Thread Uli Kusterer
ou really mean +newBlah ? Not something like +blahWithX: or just +blah? Because +new is documented to just be a shorthand for +alloc followed by -init on the result, so +newBlah behaving differently than +new sounds kinda inconsistent to me. Did I miss a serious gotcha there? Cheers, -- Uli Kust

Re: ARC code in a non ARC app. iOS

2016-02-25 Thread Uli Kusterer
urned), and end up over-releasing the +0 reference of the factory method. The other way round is similar. If you create a -copyMachine method, ARC will just return a +1 reference from it and any other code using it must release it once done to avoid leaking. Cheers, -- Uli Kusterer "Th

Re: Window updates stall on headless Mac mini

2016-04-09 Thread Uli Kusterer
xpectedly long due to GPU not being activated, and that in turn causing the heartbeat thread to take out the lock too often, starving the other thread. It could also be a side effect of anything else you're doing on a thread. Particularly if, somewhere, you're accidentally doing UI on

Re: Proper way to set up constants when building an iOS framework

2016-04-16 Thread Uli Kusterer
o an NSString > that is constant; but I recognize that may not be the way things are done in > Obj-C. Yeah, while in general that would be true, there currently is no such thing as a NSString const as far as the ObjC compiler is concerned. ObjC's constants are still sort of a runtime

Re: Pinning a Window to a Window

2016-04-22 Thread Uli Kusterer
or windows (but this has a lot of potential to break the other app, so isn't very popular and very hard to get right) Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://stacksmith.org ___ Cocoa-dev mailing l

Re: Pinning a Window to a Window

2016-04-23 Thread Uli Kusterer
On 23 Apr 2016, at 14:27, Dave wrote: >> On 22 Apr 2016, at 18:17, Uli Kusterer wrote: >> - Whether you want in the app store. If not, > Not, don’t want the App in the App store and the I’m not the developer of the > other app. > > I just want to put a window in front

Re: NSTableView is messaging zombie delegate

2016-05-08 Thread Uli Kusterer
3. Some MRC code in your ARC code over-releasing an object before it's even handed to NSViewController as a delegate. … uh, can't think of anything else right now. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywher

Re: Application Activation Problem

2016-05-17 Thread Uli Kusterer
plication too soon after the activate statement, this was usually > fixed by adding a delay. These days it the above statements seem to work and > I’m wondering if some code has been added to stop this from happening, and, > if so if I could do something similar. Have you looked int

Re: Application Activation Problem

2016-05-26 Thread Uli Kusterer
when it becomes frontmost, according to the comments in that header. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://stacksmith.org ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post ad

Re: Application Activation Problem

2016-05-26 Thread Uli Kusterer
! Thanks for the tip. That's even better than iterating runningApplications, I suppose. Though if the app you're launching is a GUI app, you may want -menuBarOwningApplication instead. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywher

Re: How to implement a control/view that maps to a "String?" (in Swift)

2016-06-05 Thread Uli Kusterer
way.) > > Is this a good way to present in the window? Any gotchas? (Oh, this is on > OS X and I’m using storyboards.) I'd just put a checkbox in front of the field. Check it off to mean NIL, check it on to enable and edit the text field. Cheers, -- Uli Kusterer "The Witnes

Re: Ending NSTask doesn't release file handle opened by the task it wraps.

2016-07-21 Thread Uli Kusterer
ve checked that I’m closing down the NSTask properly, as far as I can see. > > Is this the expected behaviour? Are you reading all the data from the task (i.e. its standardOutput, not the file) before you close it? AFAIR that's a prerequisite for it to properly close. Cheers, -- Ul

Re: Drag and Drop on iOS

2016-08-14 Thread Uli Kusterer
eing dragged, but beyond that you're pretty much back where you were in System 6 before the Drag Manager came around. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://stacksmith.org ___ Cocoa-dev mail

Re: Class is implemented in both

2016-08-15 Thread Uli Kusterer
does the same name replacement on the XIB and then manually feeds the result through ibtool. If your class only is the file's owner of a XIB, then you needn't bother. The file's owner's class is only advisory (you get whatever kind of object was passed in

Re: How to make Xcode launch a different app when "Running" my code?

2016-09-18 Thread Uli Kusterer
OS) Sure! Pick "Edit Scheme..." from the target selection popup in your Xcode window's toolbar. There, select the "Run" entry on the left. In the "Info" tab, you can set the executable to run to any executable in your project, or another arbitrary one.

Re: Stupid objective-c question

2016-09-23 Thread Uli Kusterer
> On 22 Sep 2016, at 02:01, Graham Cox wrote: > > >> On 22 Sep 2016, at 9:44 AM, Gabriel Zachmann wrote: >> >> I have found on the net > > That isn’t always a recommendation ;) > > >> if ( context == (__bridge void *) @"mediaLibraryLoaded" ) Gabriel, this is a pointer comparison, not a

Re: Stupid objective-c question

2016-09-23 Thread Uli Kusterer
On 22 Sep 2016, at 02:02, Doug Hill wrote: >>> My question is: how can the compiler know that '==' in this case is a >>> NSString comparison? >>> Or is some other magic going on here? if so, which? >>> Does the compiler know it should perform some kind of dynamic method >>> dispatch? >> >> My g

Re: Stupid objective-c question

2016-09-23 Thread Uli Kusterer
> On 22 Sep 2016, at 02:05, Gabriel Zachmann wrote: >> >>> how can the compiler know that '==' in this case is a NSString comparison? >> >> It can’t because it isn't. What’s being compared are raw pointers. The >> string value is irrelevant. > > Let me try to paraphrase, in order to check whe

Re: Stupid objective-c question

2016-09-23 Thread Uli Kusterer
alls (for those same keys, at least) are using > nil or NSObjects. That's not enough. You would also have to ensure that none of Apple's code uses a non-object context in any KVOs it installs on any of your objects. Which you can't. Cheers, -- Uli Kusterer "The Witness

Re: Stupid objective-c question

2016-09-23 Thread Uli Kusterer
No. It is not supposed to be a refCon or userInfo. It's a unique identifier for this observation (which can't be "self", because then observations registered by a subclass would get the same identifier as observations registered by the base class, and if one unsubscribes or re-

Re: Stupid objective-c question

2016-09-23 Thread Uli Kusterer
y to overlap." It is to insulate code inherited from a superclass that observes the same property as code in the superclass. By using a unique context as an additional identifier for the subscription, the subclass can't accidentally unsubscribe the base class that still wants to

Re: Stupid objective-c question

2016-09-23 Thread Uli Kusterer
object) that represents your registration and that you keep around and pass to the remove call to specify which registration to unregister. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev

Re: Stupid objective-c question

2016-09-23 Thread Uli Kusterer
nvocation, as the observeValueForKeyPath method can't be called using performSelector) to funnel all its callbacks through a single method on your object. If it allowed specifying a SEL to call, on the observer, you wouldn't need a context parameter. Cheers, -- Ul

Re: Stupid objective-c question

2016-09-23 Thread Uli Kusterer
t contains useful information, you can't tell it from someone else's context anymore (such as your superclass's). At the least using it for data would be bad style. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de __

Re: Stupid objective-c question

2016-09-23 Thread Uli Kusterer
yContext; is *guaranteed* to give you a unique address that nobody else's object may occupy? Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.app

Re: Modern API to read textClipping files

2016-09-23 Thread Uli Kusterer
ing out resource forks is still buggy, but the reading code works fine. 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 admi

Re: How to update UI from a background thread

2016-09-23 Thread Uli Kusterer
k there. If you can't do that, another option would be to run the code on the main thread of another process, e.g. using XPC, and have that call you back when it needs to make your app do something on *its* main thread. Cheers, -- Uli Kusterer "The Witness

Re: App with QuickLook Generator

2016-12-30 Thread Uli Kusterer
t know if there is any documentation (haven't worked on a QuickLook importer in years), but I'd try properly adding sandboxing entitlements to your importer and seeing if that fixes things, as if it was a standalone app. Cheers, -- Uli Kusterer "

Re: NSTouchBar in Carbon

2016-12-30 Thread Uli Kusterer
ll windows converted worked as part of the responder chain. It's been too long for me to remember what we actually did in what order. I think we first converted the menu bar to Cocoa alone, then slowly migrated windows bit by bit, starting with modal windows first. Maybe that info helps

Re: Intercept Save when closing NSDocument

2017-02-11 Thread Uli Kusterer
ets, I don't think this still works. If anyone has a similar trick… I suppose you could try setting breakpoints in the various beginSheet calls in NSApplication/NSWindow, or maybe one on -setSheetParent: might be enough. Cheers, -- Uli Kusterer "The Witnesses of T

Re: Change NSCursor globally

2017-02-11 Thread Uli Kusterer
al kind of view. For the latter, you can just create a transparent, borderless window and give it a tracking area that sets your cursor. I can give more detailed suggestions for these approaches, but there are many ways to do the same thing that work better or worse depending on what your

Re: AVSimplePlayer in Swift?

2017-02-11 Thread Uli Kusterer
're triggering a notification on a particular object/property and while that is being handled in -observeValueForKeyPath:..., it will not send a second notification. Did you move code from the -observeValueForKeyPath:... into didSet? Cheers, -- Uli Kusterer "The Witnesses of TeachText

Re: Sometimes all my menus are disabled

2017-02-12 Thread Uli Kusterer
Have you tried printing the responder chain when this happens? But as others have said, funnelling all menu choices through a menuClick: method sounds backwards. On 12 Feb 2017, at 18:01, Andreas Falkenhahn wrote: > I'm experiencing a strange issue with my app. Sometimes, maybe in 1 out of 10 >

Re: Custom NSTableRowView Question

2014-10-20 Thread Uli Kusterer
color is being set by something else ... and then maybe work within that > architecture. FWIW, I usually implement the didAddRowView:forRow: delegate method and set the color from there. That seems to work. Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywh

Re: NSImage glowing

2014-11-11 Thread Uli Kusterer
anism (I think you just name it xxxTemplateImage.pdf) and then one of NSButton's highlighting styles will recognize it’s a template image and fill and bezel it. This depends on what style of button you’re using, too, though, so may be rather limiting. Cheers, -- Uli Kusterer “The Wit

Re: wits end with nsview and nsrectfill()

2014-12-05 Thread Uli Kusterer
On 30 Nov 2014, at 18:30, Navneet Kumar wrote: > I have a custom view in which I am setting the background using NSRectFill() What is the current compositing mode set on the current graphics context? Have you tried using NSRectFillUsingOperation() and passing NSCompositeCopy to make sure you d

Re: wits end with nsview and nsrectfill()

2014-12-05 Thread Uli Kusterer
> On 05 Dec 2014, at 13:30, Uli Kusterer wrote: > > On 30 Nov 2014, at 18:30, Navneet Kumar wrote: >> I have a custom view in which I am setting the background using NSRectFill() > > What is the current compositing mode set on the current graphics context? &

Re: wits end with nsview and nsrectfill()

2014-12-13 Thread Uli Kusterer
review 5) and (2) in the > NSVisualEffectView reference document. In one of those documents, there is > some discussion of what you have to do to avoid unwanted color changes in > text fields with NSVisualEffectView in back. I think you override -(BOOL) allowsVibrancy to return NO t

Re: WTF is happening?

2014-12-15 Thread Uli Kusterer
On 15 Dec 2014, at 12:42, Jean-Daniel Dupas wrote: > I found only 5 classes that does not responds to isProxy and they are all > internal classes, so real code will never have to deal with instances of such > classes. Maxthon is iterating over the classes in the system. Even internal classes to

Re: WTF is happening?

2014-12-16 Thread Uli Kusterer
On 15 Dec 2014, at 19:19, Maxthon Chan wrote: > My current design is that the main code is never possible of holding strong > references to plugin code for extended periods. Main code keeps an eye on a > folder and whenever a new bundle is dropped in it is loaded, and whenever a > bundle is rem

Re: PList Data Typing

2014-12-16 Thread Uli Kusterer
On 15 Dec 2014, at 23:28, Jens Alfke wrote: >> On Dec 15, 2014, at 2:10 PM, Kevin Bracey wrote: >> >> How can I tell if the Value is a Boolean or Number in the NSDictionary? as 0 >> and 1 are valid values for a number. > > There's no clean solution for this. You have to take advantage of the f

Re: WTF is happening?

2014-12-16 Thread Uli Kusterer
On 15 Dec 2014, at 13:42, Jean-Daniel Dupas wrote: >> Apart from completely re-thinking his approach. E.g. NSImageRep, AFAIK, >> simply has each image representation subclass add itself to an NSArray from >> its +initialize method. I'd think that'd be less fragile than walking the >> entire cla

Re: Image Sizing

2015-01-01 Thread Uli Kusterer
ossibility of a changing size? I haven't yet been able to > find any documentation on this at all, but that may only mean I used the > wrong search keywords. You can probably assume the *point* size will stay this way, but you still need to provide 2x representations. Cheers,

Re: Application Crashing Under Mavericks, but not Yosemite (Entitlements Issue?)

2015-01-01 Thread Uli Kusterer
do a search-and-replace of sb_containsString: to containsString:. 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 o

Re: Application Crashing Under Mavericks, but not Yosemite (Entitlements Issue?)

2015-01-01 Thread Uli Kusterer
n the way). But yeah, unless you set the min *and* max OS version to <= 10.9, you prolly won’t get an error message when you use this selector. Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras.de ___ Cocoa-dev

Re: Blurry is the New Sharp

2015-01-06 Thread Uli Kusterer
solution scales on both screens are the same. 4) I have no idea whether Apple lets apps in the app store that read “their” prefs keys. 5) If Apple ever change the algorithm or look used for vibrant list views, your app will look out of place. Hope that helps in some way. Cheers, -- Uli Kusterer “

Re: Cursor above siblings

2015-01-10 Thread Uli Kusterer
for that, and just not call the inherited method when it’s over a subview. 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 req

Re: licence key validation method

2015-01-10 Thread Uli Kusterer
So if you use a PList, you’re pretty much forced to have a key file. If you need users to copy the key as a string, make the real key a struct and choose smaller data types, so you get a shorter key. Hope that helps. Cheers, -- Uli Kusterer “The Witnesses of TeachText are ev

Re: Cursor above siblings

2015-01-10 Thread Uli Kusterer
t leaves gaps for your buttons, it might solve your problem. It works in the app I just tried it in, but that does a lot of other cursor setting, so it’s not impossible there’s some other code that’s required. Please let the list know whether this work

Re: licence key validation method

2015-01-11 Thread Uli Kusterer
the brouhaha with that big bug making OpenSSL insecure. 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: … the actual OpenSSL

2015-01-11 Thread Uli Kusterer
providing a binary-stable interface) are the reason why Apple deprecated OpenSSL and introduced Security.framework. They wanted an encryption API on their platform that would automatically get its security holes plugged for all apps when the OS updates its copy, which apparently OpenSSL didn’t al

Re: licence key validation method

2015-01-12 Thread Uli Kusterer
On 12 Jan 2015, at 10:52, 2551 <2551p...@gmail.com> wrote: > Given that my licences are being generated with OpenSSL in the FastSpring > website, Didn't FastSpring have an SDK that you just drop into your app to validate their licenses? > does that mean I HAVE TO use OpenSSL to validate them? I

Re: drawRect runs twice, bounds are changed in between

2015-01-16 Thread Uli Kusterer
On 15 Jan 2015, at 07:58, Quincey Morris wrote: > Putting those two ideas together leads to a better approach. Create the > bezier path once, relative to an arbitrary bounding rect — say 1000 x 1000. > (But any rect would do.) When you need to draw the path, set the CTM of the > context to sca

Re: Search for emails in Mail’s previous recipients list from MacOSX app

2015-01-16 Thread Uli Kusterer
On 15 Jan 2015, at 22:04, Steffen Andersen wrote: > I am currently working on a MacOSX app, where the user will be able to send > mails generated based on different user input. To help the user, when > writing an email address, it would be great, if it was possible to search in > the previous

Re: Directory navigated to by menu File > Open

2015-01-16 Thread Uli Kusterer
On 16 Jan 2015, at 01:16, Jerry Krinock wrote: > So, great, I thought, just override -currentDirectory in the > NSDocumentController subclass for TextEdit, and I can make it go wherever I > want to. Have you thought about just setting the directoryURL of the NSOpenPanel? > But, no. Although

Re: setApplicationIconImage:

2015-01-22 Thread Uli Kusterer
ay completely — don’t even think about signing again on the user’s machine, that defeats the whole purpose of code signing). But anyway, NSWorkspace has a method for adding custom icons to a file: -setIcon:forFile:options: that would probably be the most convenient to use. Cheers, -- Uli

Re: Any way to force a window under the menu bar?

2015-01-26 Thread Uli Kusterer
> On 26 Jan 2015, at 05:39, Trygve Inda wrote: > > I have created a borderless NSWindow. Is there a way to force it to appear > under the menu bar so that the content of the window shows through the > translucent menu bar? > > The OS seems to be resizing or repositioning my window to prevent it

Re: Connecting a button to MyView zeros integers

2015-02-07 Thread Uli Kusterer
Owner. Creating a new object instead of using an existing one of course means that all ivars get new (likely default) values, which would be completely consistent with the observed behaviour of “everything going to 0”. Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http

Re: NSBezierPath + thin lines + antialias = :(

2015-02-09 Thread Uli Kusterer
ps drawing between pixels? Here’s an article (with pictures!) about this issue I wrote ages ago: http://orangejuiceliberationfront.com/are-your-rectangles-blurry-pale-and-have-rounded-corners/ Does that help? Cheers, -- Uli Kusterer “The Witnesses of T

Re: Connecting a button to MyView zeros integers

2015-02-13 Thread Uli Kusterer
On 12 Feb 2015, at 06:36, N!K wrote: > Control-clicking the button in .xib does show the outlet panel but it does > not list an IBAction, so it cannot connect to the IBAction entered into the > MyView.h and .m files. Also, control-dragging from the button to MyView (in > .xib, not in editor) se

Re: window:willPositionSheet:usingRect: not called in full-screen mode

2015-02-26 Thread Uli Kusterer
On 25 Feb 2015, at 15:47, Arjan van Leeuwen wrote: >> This method is useful in many situations. If your window has a toolbar, for >> example, you can specify a location for the sheet that is just below it. If >> you want the sheet associated with a certain control or view, you could >> position th

Re: Responsive scrolling control with lots of subviews

2015-03-02 Thread Uli Kusterer
On 02 Mar 2015, at 15:54, Ben wrote: >> On 2 Mar 2015, at 14:10, Mike Abdullah wrote: >>> On 2 Mar 2015, at 11:44, Ben wrote: >>> >>> Hi list, >>> >>> Since NSCell is apparently on the way out, I've been trying to build a new >>> control I need using views. It's a cut-down spreadsheet-alike g

Re: Responsive scrolling control with lots of subviews

2015-03-02 Thread Uli Kusterer
On 02 Mar 2015, at 17:43, Ken Thomases wrote: > On Mar 2, 2015, at 9:45 AM, Uli Kusterer wrote: > >> Are you re-setting *all* the views or only hiding views that scroll out and >> moving unused views to newly exposed areas? We've been doing stuff like that >> in

Re: Responsive scrolling control with lots of subviews

2015-03-02 Thread Uli Kusterer
On 02 Mar 2015, at 19:26, Ben wrote: > - Granularity of selection. For example single or multiple disconnected > cells. NSTableView only gives me row or column. > - Scrollable floating headers on both axis. This I did sort-of manage with > NSTableView by styling the first column to look like a h

Re: Inconvenient exception impossible to get rid of?

2015-03-02 Thread Uli Kusterer
not doing it, it may be worth trying if somehow Apple isn’t expecting that. 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 r

Re: Create a NSURL as a way to validate urls - not working

2015-03-02 Thread Uli Kusterer
aken to accept these risks. > ___ > > 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 > > He

Re: Muting keyboard of the application

2015-03-03 Thread Uli Kusterer
On 03 Mar 2015, at 09:55, claudio santoro wrote: > I'm developing an application for Yosemite OSX. > > How can I mute all the keyboard sounds like the ones retrieved when the > user presses the right cursor key inside an empty text box? I don't get a sound when I do that in any of my apps or a

Re: Trying to create a 1px width NSBox

2015-03-10 Thread Uli Kusterer
ew. Make it layer-backed and set its layer’s contents to your image (setting the anchor so the image is centered in the view). That way, the GPU will take care of compositing the image, and won’t have to re-upload the entire window contents whenever the user drags, saving laptop users battery.

Re: Cocoa GUI app getting slower on MacPro or MacMini when disconnecting all screens

2015-03-12 Thread Uli Kusterer
On 11 Mar 2015, at 23:40, Matthieu Beghin wrote: > Any idea ? You're not doing anything graphics or OpenGL-related, are you? At least in the old days, Macs would turn off the GPU when no screen was attached, meaning that you'd end up in software emulation when you did any openGL calls. I thoug

Re: Swift Keypress KeyDown NSResponder input function needed.

2015-03-12 Thread Uli Kusterer
On 12 Mar 2015, at 01:09, Mutlu Qwerty wrote: >self.nextResponder = super.nextResponder //insert self into the > Responder chain I think you mis-typed here. super nextResponder calls the superclass's implementation of -nextResponder, but it still just calls nextResponder with self be

Re: Swift Keypress KeyDown NSResponder input function needed.

2015-03-12 Thread Uli Kusterer
> On 12 Mar 2015, at 16:17, Uli Kusterer wrote: > > On 12 Mar 2015, at 01:09, Mutlu Qwerty wrote: >> self.nextResponder = super.nextResponder //insert self into the >> Responder chain > > I think you mis-typed here. super nextResponder calls the superc

Re: Runtime message on Yosemite seems spurious?

2015-03-20 Thread Uli Kusterer
gt; seems ot be a spurious message, or is it really trying to tell me something > important? Haven’t had this happen without a reason yet. Maybe you’re accidentally messaging views from a non-main thread or causing view layout in drawRect:? Cheers, -- Uli Kusterer “The Witnesses of TeachText are

Re: Inserting a task into the run loop

2015-03-22 Thread Uli Kusterer
oo. What are you doing that needs to happen at that time? Seems like an odd requirement, so knowing what it’s for would be handy. Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras.de ___ Cocoa-dev mailing list (Cocoa-dev

Re: Inserting a task into the run loop

2015-03-22 Thread Uli Kusterer
teps in one go. Then you could limit yourself to the minimal frequency, including not simulating anything while your window is obscured or the like, and would at busy times only have to run as often as the framerate of the screen. Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhe

Re: NSOpenPanel accessoryView clicks must hit pixels to work

2015-03-30 Thread Uli Kusterer
> On 30 Mar 2015, at 11:09, Mike Abdullah wrote: > > >> On 30 Mar 2015, at 08:19, Steve Mills wrote: >> >> OK, this is really weird. I just added an accessoryView to an NSOpenPanel. >> The view contains only a checkbox style NSButton. When testing it, it seemed >> like the clicks on this bu

Re: Drawing in a view with alpha < 1.0 shows windows behind

2015-03-31 Thread Uli Kusterer
> On 31 Mar 2015, at 14:39, Eyal Redler wrote: > I'm working on a custom view. I'm using the following code to draw the view > > [[NSColor colorWithDeviceRed:(float)42/255 > green:(float)49/255 >

Re: Swift: How to determine if a Character represents whitespace?

2015-04-02 Thread Uli Kusterer
range between those two offsets. Wildly guessing, -- Uli Kusterer http://stacksmith <http://stacksmith/>.org ___ 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: Where are my bytes?

2015-04-04 Thread Uli Kusterer
resource fork that can also take up space on disk, and API may or may not include this in its reports. Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras.de On 04 Apr 2015, at 11:23, Gerriet M. Denkmann wrote: > When I look at " /Library/D

Re: addTarget: forControlEvents: ?

2015-04-08 Thread Uli Kusterer
On 07 Apr 2015, at 21:49, Dave wrote: > Given the iOS/Cocoa-Touch code: > > [self addTarget:self action:@selector(buttonTouchUpInsideAction:) > forControlEvents:UIControlEventTouchUpInside]; > [self addTarget:self action:@selector(buttonTouchDownAction:) > forControlEvents:UIControlEventTouchDo

Re: Implement multi-tabs with WebView

2015-04-09 Thread Uli Kusterer
On 08 Apr 2015, at 22:24, Juanjo Conti wrote: > Hi! I'd like to use a WebView instance to handle a multi-tabs browser-like > desktop app. Is it possible using only one WebView instance? Or should I > need to use once per tab? You'll want to use one per tab. You could put the web view as a *peer*

Re: UITextView doesn't change the text in iOS 8.2(12D508)

2015-04-09 Thread Uli Kusterer
On 08 Apr 2015, at 21:43, wesley.dias wesley.dias wrote: > I'm having trouble to change the text in a UITextView element on a iPhone > 5 OS 8.2(12D508). The same layout works in other versions( version < 8 ). > I've tried to exclude and add the element again but it still doesn't work. > > Sugges

Re: User interface unresponsive in window

2015-04-17 Thread Uli Kusterer
On 15 Apr 2015, at 16:04, Jonathan Taylor wrote: > I've started encountering intermittent problems in one specific window in my > application, where text input boxes become unresponsive, steppers remain > highlighted after clicking, etc. I'm rather short of ideas on how to debug > this, particu

Re: No sound through speaker

2015-04-17 Thread Uli Kusterer
neral, the “mute” switch is actually a “ringer” switch. That is, it’s supposed to *only* suppress notification sounds and ring tones, not e.g. movie audio. Could that perhaps be your issue? I think the APIs that let you set this category of sound are called “audio session” or so? Cheers, -- Uli Ku

Re: Thousands of leaked CGContext ?

2015-04-20 Thread Uli Kusterer
On 20 Apr 2015, at 09:05, Eric Matecki wrote: >>>CGDataProviderRef provider = CGDataProviderCreateDirect( &mps, >>> sizeof(mps), &callbacks ); >>> >>>NSWindow* window = (NSWindow*)Window(); >> >> What does this line do? > > It's just a global function which returns the (only) window.

Re: Try to open an app from a screensaver

2015-04-25 Thread Uli Kusterer
contents > to anyone. Messages sent to and from Watu may be monitored to ensure > compliance with our internal policies and to protect our business. Emails > are not secure and cannot be guaranteed to be error free. Anyone who > communicates with us by email is taken to accept these ri

  1   2   3   4   5   6   7   8   9   >