"weak" is also inherently incompatible with KVO, because no notification is
sent when the weak reference goes away. And that'll wreak havoc, especially
when you are using Cocoa Bindings.
Gerd
> On Dec 6, 2015, at 05:52, Dave wrote:
>
>>
>> On 4 Dec 2015, at 18:04, Quincey Morris
>> wrote:
One possible issues is that `self.thingy=x;` will trigger two change
notifications for `thingy`: one for `self.dictionaryOfThings = temp;` (due to
keyPathsForValuesAffectingThingy), and one when the setter exits. Depending one
what your observer does this may have unforeseen side effects.
A po
You know that you can have multiple AVPlayerLayer pointing to the same
AVPlayer, right? At least on OS X that works just fine.
Gerd
> On Nov 26, 2014, at 9:43 AM, douglas welton
> wrote:
>
> Have you taken a look at AVPlayerItemVideoOutput?
>
>> On Nov 20, 2014, at 11:44 AM, Hado Hein wrote
NSLinguisticTagger might be worth a look.
And if you don't care about word counts, NSMutableSet -minusSet: or
-intersectSet: could be of help as well.
Gerd
> On Sep 20, 2014, at 1:54 PM, 2551 <2551p...@gmail.com> wrote:
>
> Definition:
>
> On 21 Sep 2014, at 00:53, Jens Alfke wrote:
>
>> a
You can use NSFontManager to get all fonts.
On Aug 9, 2014, at 4:30 PM, Raglan T. Tiger wrote:
>
> I have been tasked with getting outlines of all True Type fonts on a user Mac.
>
> I am just beginning my research and first Google results were unsatisfying.
>
> I am now going to NSFont but th
That's similar to what I have used. Initially it started out simply as
id keepAlive=self;
...
keepAlive=nil;
but a few Xcode versions ago the static analyzer started complaining that it
wasn't really doing anything. So that last line became
if(keepAlive) { k
On Apr 30, 2014, at 2:39 PM, Jens Alfke wrote:
> Yes. DO between computers (over TCP) was never really supported on OS X,
It most certainly was supported, and useable on a LAN (and even on a WAN over
VPN, did not try it in the wild).
> and has a number of security and reliability problems
Tr
Dangerous (and entirely wrong) assumption.
On Apr 18, 2014, at 12:07 PM, Quincey Morris
wrote:
> — Check the capitalization of your XIB file name. It’s possible that case
> matters to nib loading, even though the Mac file system is case insensitive.
>
___
https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/EncapsulatingData/EncapsulatingData.html#//apple_ref/doc/uid/TP40011210-CH5-SW3
and scroll up about half a page:
"Properties Are Atomic by Default"
gerd
On Apr 7, 2014, at 6:56 PM, Graham Cox wrot
In Interface Builder text fields you can use "Value with Pattern" to combine
multiple properties into a single output. Alternatively in code you can do
something like this:
- (NSString *)fullName {
return [NSString stringWithFormat:@"%@,
%@",self.lastName,self.firstName];
}
+ (
Probably more to do with the NeXTSTEP/OPENSTEP ancestry. Those used Display
Postscript with the origin being the bottom left.
Gerd
On Sep 23, 2013, at 1:19 PM, Dave wrote:
>
> On 23 Sep 2013, at 17:09, Peter Teeson wrote:
>>
>> Peter
>>
>> PS: If my memory is correct, from the beginning of
Can't agree here, I have used NSScanner to parse quite a few even complex file
formats, and NSScanner was a pretty convenient (and fast!) solution for these
cases.
Gerd
On Mar 19, 2013, at 8:37 PM, Jens Alfke wrote:
>
> On Mar 19, 2013, at 4:37 PM, Graham Cox wrote:
>
>> I don't find NSSca
On Jan 28, 2013, at 9:59 PM, eric_h_sm...@mac.com wrote:
> All,
>
> I'm using NSNetService to publish a service on a network... and I cannot
> remove that service without restarting the computer.
In my case I do absolutely nothing to stop the service, and when the app quits
the service reliab
On Aug 24, 2012, at 4:27 PM, Laurent Daudelin wrote:
> Am I missing something? Where do you set the column identifier in Xcode 4.4?
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the
Hi,
Whenever I use -setSearchScopes: in ML I get bogus results, was fine in Lion. I
presume mdfind's "-onlyin" flag uses this as well, and delivers the same bogus
results:
gerti@sputnik(900) ~: mdfind "kMDItemFSName == 'SomeBogusFileName.xyz'" | wc -l
0
gerti@sputnik(901) ~: mdfind -only
My sandboxed app with spotlight importer and using core data uses Record-Level
Indexing as described here:
https://developer.apple.com/library/mac/#documentation/cocoa/Conceptual/SpotlightCoreData/Articles/recordLevel.html#//apple_ref/doc/uid/TP40008065-CH101-SW2
The importer does work,
Hi All,
When browsing the local developer documentation, Safari shows file URLs that
look like this:
file:///path/index.html#more/path/actualFile.html#some_location
(A full example is pasted below)
So they contain multiple fragments (the '#' part), and Safari happily opens
them when p
On Oct 2, 2011, at 9:11 AM, Keary Suska wrote:
> On Oct 2, 2011, at 6:05 AM, Koen van der Drift wrote:
>
>>
>> It actually is a label, so I can use the value with pattern bindings, thanks
>> for pointing that out.
>>
>> Any idea how to get a hard return between the two values?
>>
>> %{value1
Hi All,
I have a printer driver with a Cocoa PDE that has some options. I'd like to
have these options change for all apps when the user modifies them in one
(stuff like account name to access the printer, remember password etc. The
password itself is stored in the keychain).
For that to work
On Sep 15, 2011, at 3:55 PM, Scott Ribe wrote:
> On Sep 15, 2011, at 2:34 PM, Jerry Krinock wrote:
>
>> Bang. Just do a ⇧⌘F, copy that 13476 to the search field, and in seconds
>> the problem is staring me in the face.
>>
>> __FILE__ would be useful if it didn't print out the whole damned ful
On Aug 25, 2011, at 3:30 PM, Fritz Anderson wrote:
> iOS 4.3 Simulator, Xcode 4.1, Lion 10.7.1
>
> I'm having trouble generating a Core Data store and opening it in an iOS app
> (in the Simulator so far).
>
> My iOS app has to initialize a large, read-only dataset — a 12,000-word
> vocabulary
On Jul 26, 2011, at 5:20 AM, Jean-Daniel Dupas wrote:
>
> Le 26 juil. 2011 à 02:33, Gerd Knops a écrit :
>
>> Hi,
>>
>> Is there an application-global way of disabling window restoration?
>>
>> All I can find is NSWindow's "- (BOOL)isRestorab
Hi,
Is there an application-global way of disabling window restoration?
All I can find is NSWindow's "- (BOOL)isRestorable" method (and it's relatives).
I was hoping for something more global, like a "- (BOOL)shouldRestoreWindows"
method in the application delegate protocol or the NSDocumentCon
Hi All,
I have an array of objects, and use -filteredArrayUsingPredicate: to filter it.
The predicate is straight forward:
description CONTAINS[cd] 'bravo'
This works fine, unless the array contains a NSNotApplicableMarker object,
which just gives me the rather useless error message:
very cool system that with some additions could evolve into
something even more powerful.
Gerd
rdar://problem/5883633
23-Apr-2008 11:49 AM Gerd Knops:
With Spotlight becoming more important, the lack of a simple and well supported
system to store arbitrary metadata is sorely felt.
All exist
On Jun 29, 2011, at 8:22 AM, Ulf Dunkel wrote:
> I would really like to get a hint on this. Even a simple "not possible" would
> help. Thank you. :-)
>
> - - - - -
>
> Am 27.06.2011 22:58, schrieb Ulf Dunkel:
>> In a simple app of mine, I use the standard Help menu and MyApp Help
>> menu item,
On May 5, 2011, at 7:29 PM, Indragie Karunaratne wrote:
> This message keeps getting logged when trying to run my app (OS X 10.6.7):
>
> "No current point for control point bounds"
>
Check NSBezierPath usage. A message like that shows up when -relativeXXX is
used without a current point in the
On Jul 12, 2010, at 4:17 PM, Christian Graus wrote:
> hi guys. I am getting back in to iPad development, and at this stage,
> I have an application that was written for us, which I want to deploy.
> I've not made any code changes, but I've changed the databases, which
> means I've changed the fi
On Jun 23, 2010, at 2:05 PM, Fritz Anderson wrote:
>
> On 23 Jun 2010, at 1:15 PM, Gerd Knops wrote:
>
>> On Jun 22, 2010, at 10:28 PM, Angelica Grace Tanchico wrote:
> ...
>>
>>> Can the new iOS 4 maintain UDP socket connection in the background? Or is
&g
On Jun 22, 2010, at 10:28 PM, Angelica Grace Tanchico wrote:
>
> Hello,
>
> Can the new iOS 4 maintain UDP socket connection in the background? Or is it
> only TCP?
I have been doing that without a problem since early iOS 3, so no reason to
expect it would stop working in iOS4.
Gerd
__
On Mar 15, 2010, at 4:32 PM, Rick Mann wrote:
> Instead of passing my operation a target and selector, is there any way I can
> just pass it a block, but then have it execute that block on the main thread?
Note that the methods listed so far will cause a deadlock if called from the
main thread
On Mar 6, 2010, at 10:21 AM, Ulai Beekam wrote:
>
> Which one would you prefer (assuming you had 99 bucks to spare each year
> without trouble) and why?
>
Mailing list over forum any day. Don't make me hunt a bunch of forums every
day! x lists, one convenient interface (Mail.app).
But my big
Hi All,
I use NSPrintPanel's "addAccessoryController:" method to add an accessory view.
It is used to manipulate some app-sepcific variables inside NSPrintInfo's
"printSettings".
Most everything works fine, changing the values changes the preview, they are
stored in Presets etc.
The one thing
On Jan 15, 2010, at 9:59 AM, Keary Suska wrote:
> On Jan 14, 2010, at 9:47 AM, Gerd Knops wrote:
>
>> I have a typical NSTableView setup where the column content is provided by
>> an NSArrayController.
>>
>> Now say a column is bound to arrayController.arrang
I have a typical NSTableView setup where the column content is provided by an
NSArrayController.
Now say a column is bound to arrayController.arrangedObjects key path a.b.c.d.
In this scenario if "b" changes (even in a KVO-complient way), it will still
result in an NSInternalInconsistencyExcept
Never mind... Someone had switched the BG color from a very light gray to
white... :-o
On Jan 11, 2010, at 11:46 AM, Gerd Knops wrote:
> I think I am loosing my mind!
>
> In my custom TableView cells I draw the background like so:
>
> [[NSCol
I think I am loosing my mind!
In my custom TableView cells I draw the background like so:
[[NSColor xxxColor]set];
NSRectFill(interiorFrame);
It works fine for xxx=red, green etc. But for [NSColor whiteColor] the
background stays gray (the table views background)
On Oct 28, 2009, at 11:41 AM, Jim Correia wrote:
If you are looking for a more general solution, you can retrieve the
binding data from the table view using -infoForBinding:, valuate the
target & arguments, and invoke the method that way.
I could, but given the flexible number of arguments tha
Seems this should be easy:
I have an NSTableView's "Double Click Target", "Double Click
Argument", "Double Click Argument2" etc. binding set, and they work
fine.
Now I would like to programmatically get the tableview to issue a
double-click response. Obviously "target" and "doubleAction"
On Aug 31, 2009, at 1:28 PM, Volker in Lists wrote:
Hi,
have you changed the binding conditionally sets enabled respectively
conditionally sets editable ? That did the trick before on 10.5
Tried that (BTW did not need that in 10.5, at least not in later
versions). Didn't help in 10.6...
Seems that in Snow Leopard the "editable" setting in the column
attributes is ignored for Check Box Cells in NSTableViews.
That is causing trouble, for example when the bound value is read-only.
Anyone knows of a workaround? I tried hooking up the editable binding
of both column and cell to
On Mar 7, 2009, at 5:26 PM, Olivier Palliere wrote:
Hi All,
I am working on an application that once started, sets up some
temporary files and so. I didn't think of it at first, but I had the
case where a friend force quitted the application, and I was left
with the app not running, and
On Mar 4, 2009, at 11:45 AM, Mr. Gecko wrote:
Hello, I'm finding something weird. I am writing an application that
posts comments. I am able to open the sheet and I have a post and
cancel button, they work when you push them, but when I call
endSheet with NSApplication, it doesn't end unti
On Feb 26, 2009, at 4:29 PM, Andrew Farmer wrote:
On 26 Feb 09, at 14:05, Karl Moskowski wrote:
I'm looking for a way to disable some features in my application if
it's being run by the Leopard Guest account.
I tried using CSIdentityQueryCreateForCurrentUser() as outlined in
the Identity
On Feb 10, 2009, at 5:08 PM, Kevin Gessner wrote:
On Feb 9, 2009, at 11:47 PM, Gerd Knops wrote:
Assuming I have two identical USB keyboards (actually barcode
scanners) connected to a mac, is there any way to tell which of
them a keyboard event came from?
[snip]
Is there some way to
Assuming I have two identical USB keyboards (actually barcode
scanners) connected to a mac, is there any way to tell which of them a
keyboard event came from?
I can get to the keyboard type easily enough, but that only helps when
I have different keyboards:
- (void)sendEvent:(NSEvent *)an
On Dec 31, 2008, at 8:43 PM, Julien Jalon wrote:
On Wed, Dec 31, 2008 at 10:37 PM, Gerd Knops > wrote:
Seemingly arbitrary limitation, when according to the documentation
Java applets and Flash are supported.
Web Plug-ins are not supported (if this is in QL documentation, it
is a
On Dec 31, 2008, at 1:22 PM, Gerd Knops wrote:
I am looking to add QuickLook functionality to a fairly complex
document. A static html file, using some javascript to interact with
the document contents would be ideal for a number of reasons. So I
experimented by adding a QuickLook
I am looking to add QuickLook functionality to a fairly complex
document. A static html file, using some javascript to interact with
the document contents would be ideal for a number of reasons. So I
experimented by adding a QuickLook/Preview.html file to my document
bundle.
That works fi
On Dec 26, 2008, at 2:04 AM, Wesley Smith wrote:
Is there a way to know if a modifier key (shift, ctrl, option, cmd,
etc) is pressed? Obviously, there's this:
NSUInteger modifierFlags = [theEvent modifierFlags];
but what if you need to know this information independent of an
NSEvent? Anyway
I am having trouble with NSFileManagers 'copyItemAtPath:toPath:error:'
method:
Assuming
- the source path contains some files that use extended attributes
- the destination is on an AFP mounted volume
Under those circumstances copyItemAtPath:toPath:error:' fails and
returns this error:
On Nov 26, 2008, at 5:14 PM, Jean-Nicolas Jolivet wrote:
I know this might seem like a weird idea, but I need to figure out
the size (width and height) of an NSAttributedString that I am
drawing... basically I need to know it because I am drawing it
inside a larger image and I need to posi
This code:
NSPredicate *aPredicate=nil;
@try
{
aPredicate=[NSPredicate predicateWithFormat:@invalid"];
}
@catch(NSExcption *e)
{
NSLog(@"Handled");
}
causes my exception handler delegate to b
On Sep 25, 2008, at 10:37 PM, Ken Thomases wrote:
On Sep 25, 2008, at 9:18 PM, Graham Cox wrote:
On 26 Sep 2008, at 10:24 am, Gerd Knops wrote:
I would like to use a key other than "tab" to advance to the next
text field, so that users can use a numeric keypad to enter
some
On Sep 25, 2008, at 9:18 PM, Graham Cox wrote:
On 26 Sep 2008, at 10:24 am, Gerd Knops wrote:
I would like to use a key other than "tab" to advance to the next
text field, so that users can use a numeric keypad to enter
something like "11-22-33" and have 11,
I would like to use a key other than "tab" to advance to the next text
field, so that users can use a numeric keypad to enter something like
"11-22-33" and have 11, 22 and 33 end up in different text fields.
Is there an elegant way to do that, preferably cocoa binding compatible?
Thanks
Ger
OK, so:
[[NSExceptionHandler defaultExceptionHandler]setDelegate:self];
[[NSExceptionHandler defaultExceptionHandler]setExceptionHandlingMask:
0
| NSHandleUncaughtExceptionMask
| NSHandleUncaughtSystemExceptionMask
|
On Aug 20, 2008, at 11:10 PM, Graham Cox wrote:
On 21 Aug 2008, at 5:13 am, Gerd Knops wrote:
That'd work, but I'd have to subclass NSWindowController for that
so I can add that property. Seemed to me that the above would not
be an uncommon pattern and there ought to be a mo
On Aug 20, 2008, at 1:57 PM, Ken Thomases wrote:
On Aug 20, 2008, at 1:39 PM, Gerd Knops wrote:
I have a NSWindowController subclass managing a window and some
functionality in that window. Now at some point I need to display a
sheet, which is a window in a different nib.
I'd li
I have a NSWindowController subclass managing a window and some
functionality in that window. Now at some point I need to display a
sheet, which is a window in a different nib.
I'd like to use another NSWindowController to load that nib file,
mainly so it will take care of (eg release) all
Can someone confirm that this is a bug in NSCollectionView or IB, or
am I simply doing something wrong? If the former, can someone
recommend a workaround? Should I, for instance, set the bindings
programmatically?
I see the same behavior: If a NSTabView is used inside a
NSCollectionView
On Jul 22, 2008, at 3:13 PM, Martin Wierschin wrote:
Hi Gerd,
[..]
In your case I would worry about the call sequence when line
fragments are calculated. There's no guarantee that each fragment
will only be swept out once and in an order sorted by vertical
position. Especially if you h
On Jul 21, 2008, at 6:10 PM, Martin Wierschin wrote:
Hi everyone,
We've had a report or two from users where text will incorrectly
draw in an area it's not supposed to. Basically a line fragment (or
part of one) from the prior NSTextContainer will draw over text in
the current container.
I have a document based application with multiple windows per
document, using window controllers.
I was hoping that the window menu would magically group windows
belonging to the same document together, similar to what Xcode does.
But apparently that is not the case. Am I missing something,
On May 7, 2008, at 8:31 PM, Martin Wierschin wrote:
When access for assistive devices is enabled in the system
preferences, the exception handler in my application catches
bunches of NSAccessibilityExceptions when a panel is opened.
Any way to avoid that?
You can have your NSExceptionHan
When access for assistive devices is enabled in the system
preferences, the exception handler in my application catches bunches
of NSAccessibilityExceptions when a panel is opened.
Any way to avoid that?
Thanks
Gerd
___
Cocoa-dev mailing list (C
Hello all,
I am including a PDF document inside a document like so:
NSData *pdfData=[[NSData
alloc]initWithContentsOfFile:actualPath];
NSPDFImageRep *imageRep=[[NSPDFImageRep alloc]initWithData:pdfData];
[imageRep drawInRect:rect];
Works fine
Coincidentally I just went through that same song and dance. With
Spotlight becoming more and more important in OSX, it is surprising
Apple has not provided a clean method to store arbitrary metadata with
any kind of file. Maybe time for us all to file an enhancement request.
As others have
On Apr 19, 2008, at 11:33 PM, Chris Hanson wrote:
On Apr 19, 2008, at 9:55 AM, Gerd Knops wrote:
This returns an array with URLs of applicable applications for a
file of a given URL:
- (NSArray *)applicationsForURL:(NSURL *)url {
return (NSArray
*)LSCopyApplicationURLsForURL
On Apr 19, 2008, at 11:03 AM, Daniel wrote:
Hi to all,
is there a way to query all the possible applications (the one which
is shown in the list "Open With") of a specific file from Cocoa?
This returns an array with URLs of applicable applications for a file
of a given URL:
- (NSArray *)ap
Is there a way to programmatically connect to a NIB file and read it's
outlets without changing my File's Owner? I have a color well in one
NIB (My Prefs NIB) and a window in another. I want the color well to
change the window's background. I have an action called setColor:, but
I cannot figure ou
On Mar 6, 2008, at 2:35 PM, Charles Ross wrote:
[..]
If I enter the following command in the terminal, it returns about
20,000 records to the screen in about one second:
sqlite3 Videos.sql 'select * from ZVIDEOS'
The file has a fairly large number of records, almost 20,000.
However, t
72 matches
Mail list logo