On May 12, 2015, at 15:38 , Quincey Morris
quinceymor...@rivergatesoftware.com wrote:
dynamic var message: String
dynamic var messageIsEmpty: Bool {return String == “”}
static var keyPathsForValuesAffectingMessageIsEmpty: NSSet {return NSSet
(object: messageIsEmpty”)}
FWIW, a Swift-ier
On May 12, 2015, at 14:29 , William Squires wsqui...@satx.rr.com wrote:
class IsNotEmptyTransformer : NSValueTransformer
{
}
but the example in the documentation is in ObjC, not Swift, and refers to id,
not to Bools or Strings. Hints, anyone?
Using a value transformer at all seems like
On May 8, 2015, at 02:46 , Charles Jenkins cejw...@gmail.com wrote:
I may have a fundamental misunderstanding of how a document class, a text
view, and an undo manager work together.
It depends a bit on what kind of editing your document can have done to it.
I already tried plugging the
On May 8, 2015, at 17:50 , Charles Jenkins cejw...@gmail.com wrote:
I tell the text view its delegate is my Document instance as soon as possible
in windowControllerDidLoadNib:
I don’t know the timing offhand, but it’s possible that the text view looks for
its undo manager earlier. I’d
On May 2, 2015, at 11:18 , William Squires wsqui...@satx.rr.com wrote:
Since, in both iOS and Mac OS X, a control IS a view, why don't controls have
their own dedicated view controllers?
There’s a philosophy about containment, referring not the parent/subview
relationship, but the geometric
On Apr 30, 2015, at 22:53 , Graham Cox graham@bigpond.com wrote:
It looks as if to be sure I’m going to have to drop down a level and create
my own NSOperations.
You can create your own (non-serial) GCD queue with any desired QoS, then set
your NSOperationQueue to use it.
On Apr 30, 2015, at 23:41 , Graham Cox graham@bigpond.com wrote:
I’d be interested to know if this has changed from 10.9 or earlier (I’m on
10.10).
Oh, QoS is 10.10+ only. Before that there was threadPriority and queuePriority
for NSOperation, and the old GCD dispatch queue priorities
On Apr 30, 2015, at 23:41 , Graham Cox graham@bigpond.com wrote:
But if I leave it at the default, the same blocking problem is apparent.
Logging the default QoS, I see it’s -1, which equates to
NSQualityOfServiceDefault. Setting it to
NSOperationQualityOfServiceBackground things are
On Apr 30, 2015, at 21:46 , Graham Cox graham@bigpond.com wrote:
If anyone’s interested in having a look at what’s happening, I’ve put the
project sources up here: http://apptree.net/code/Gingerbread.zip
http://apptree.net/code/Gingerbread.zip
Here’s what I see:
— I took out your
On Apr 30, 2015, at 19:15 , Graham Cox graham@bigpond.com wrote:
Well, the docs say:
This method only has an effect if style returns NSProgressIndicatorBarStyle.
If style returns NSProgressIndicatorSpinningStyle, the indicator is always
indeterminate, regardless of what you pass to
On Apr 30, 2015, at 16:39 , Graham Cox graham@bigpond.com wrote:
As I mentioned it’s the spinning busy indicator, which is always
indeterminate.
The circular style isn’t always indeterminate, though (I forgot) it looks
different when it’s not indeterminate.
I just tried forcing an app
On Apr 29, 2015, at 02:08 , Charles Jenkins cejw...@gmail.com wrote:
override func saveToURL(
url:NSURL,
ofType typeName:String,
forSaveOperation saveOperation:
NSSaveOperationType,
completionHandler:(NSError!) - Void
) {
// snip Here I prepare my data
On Apr 29, 2015, at 18:22 , Graham Cox graham@bigpond.com wrote:
The indicator shows and hides correctly, but most of the time it doesn’t
actually spin. It does sometimes, but mostly it doesn’t. I’m wondering if
there’s something I need to do to keep it going that I’m not doing (I’m not
On Apr 28, 2015, at 10:57 , William Squires wsqui...@satx.rr.com wrote:
the whole simulator screen is taller than my iMac's screen can display, even
for iPhone 5s as the simulator target, …
So change the display scale to 50% from the simulator’s Window menu.
… thus I have to scroll the
On Apr 28, 2015, at 09:45 , William Squires wsqui...@satx.rr.com wrote:
shows 15 rows
You keep saying “shows”, but you don’t say what this means. A table view can
only “show” as many rows as can fit between its top and bottom bounds. The rest
are “shown” by scrolling the view.
So, how many
On Apr 26, 2015, at 12:40 , Charles Jenkins cejw...@gmail.com wrote:
Is this a disaster in Swift-to-ObjC bridging, or have I done something wrong
to cause it?
func textView( tv:NSTextView, shouldChangeTextInRange range:NSRange,
replacementString:String ) - Bool
The problem is that the
On Apr 25, 2015, at 17:54 , Peter Tomaselli peter.tomase...@icloud.com wrote:
I don’t have a real good reason for not using the main thread at the
moment—it seems fine, performance-wise, for what I am doing.
The point of these restrictions on ABAddressBook is that it’s *already* an
On Apr 25, 2015, at 17:06 , Peter Tomaselli peter.tomase...@icloud.com wrote:
The crux of my problem is that, according to the docs,
ABAddressBookRequestAccessWithCompletion’s completion handler “is called on
an arbitrary queue”. However, ABAddressBookRequestAccessWithCompletion
accepts as
On Apr 25, 2015, at 18:51 , Peter Tomaselli peter.tomase...@icloud.com wrote:
This is for iOS. Isn’t the C API the only option on that platform?
Yes, by the time I got there I didn’t notice that it was OS X only.
I realize I was wrong, too, to call the address book API asynchronous. When you
On Apr 16, 2015, at 08:41 , Dave d...@looktowindward.com wrote:
Any advice on how to quickly achieve this would greatly appreciated, but it
if means spending days reading documentation and experimenting just to set
the frame of a view, then I may as well forget including this part in the
On Apr 16, 2015, at 12:21 , Dave d...@looktowindward.com wrote:
On iOS, there is a method called “layoutSubviews” that I’ve used to do this
sort of thing in the past, so it was deemed the correct place to do this in
iOS, I assumed it would be the same or similar for Mac.
No, it’s “old
On Apr 16, 2015, at 13:54 , Dave d...@looktowindward.com wrote:
I’m wondering if the call to super should happen before I mess with the
Content View?
From the NSWindowController documentation:
The default implementation does nothing.”
However, it’s probably better practice to put it at
On Apr 15, 2015, at 07:04 , Jonathan Taylor jonathan.tay...@glasgow.ac.uk
wrote:
From dimly-remembered past experience I have a feeling it could be related to
something somewhere resulting in GUI code being executed on a non-main thread.
You can at least start by trying the simple things,
On Apr 15, 2015, at 14:54 , Jonathan Taylor jonathan.tay...@glasgow.ac.uk
wrote:
Am I right in thinking that when running under Xcode any drawing errors will
be logged to the Xcode console?
No, not unless they’re actually exceptions. Messages from other processes are
only going to appear
On Apr 15, 2015, at 13:30 , Aandi Inston aa...@quite.com wrote:
2. As a quick fix, is there a way to make sure this highlight box
disappears with the
control that it is (to my mind) attached to?
It’s probably being drawn around the field editor, and perhaps that’s not being
dismissed
On Apr 14, 2015, at 23:47 , Gerriet M. Denkmann gerr...@mdenkmann.de wrote:
Using the Xcode template: iOS - Master-Detail, the Detail view has (in the
top left corner) a Back-Button, which works fine.
Now I added another UIBarButtonItem called: “Do something and go back”
connected to
On Apr 15, 2015, at 01:18 , Gerriet M. Denkmann gerr...@mdenkmann.de wrote:
In DetailViewController I added:
- (IBAction)unwindToMainMenu:(UIStoryboardSegue*)sender
I dunno offhand, but you originally said you’re trying to go back to the master
view controller, and the tech note says that
On Apr 14, 2015, at 17:01 , Juanjo Conti jjco...@carouselapps.com wrote:
If I click the button too many times, fast enough, my app crash with a
EXEC_ error and if I enable zombie objects I get that it crash when one of
this two messages is been send:
[MyDelegate respondsToSelector] or
On Apr 13, 2015, at 12:33 , Steve Mills sjmi...@mac.com wrote:
And this is correct for the fileType parameter of
writeSafelyToURL:ofType:forSaveOperation:error:? The docs don't explicitly
say that fileType is a UTI, or which part of the Info.plist it comes from.
We've just come to assume
On Apr 7, 2015, at 09:05 , Alex Zavatone z...@mac.com wrote:
Gremlins, I think.
No, something, but not that.
Enums are a C thing, not even Obj-C. They are, for all intents and purposes, an
int of some size and signedness chosen by the compiler. So, the enum part of
this is a red herring.
On Apr 7, 2015, at 02:21 , Gerriet M. Denkmann gerr...@mdenkmann.de wrote:
it allowed me to create a replacement for characterSetWithCharactersInString:
which actually works
The only suggestion I have is to return ‘mus.copy’ instead of ‘mus’.
Given that we know NSCharacterSet has some
On Apr 7, 2015, at 10:58 , Daryle Walker dary...@mac.com wrote:
@interface MyClass : NSObject
@property (readonly) NSArray * myDatumList;
@property NSArray * myDataList;
@end
@implementation MyClass
- (NSUInteger)countOfMyDatumList {
return self.myDataList.count;
}
-
On Apr 6, 2015, at 09:19 , Gerriet M. Denkmann gerr...@mdenkmann.de wrote:
Where is my bicycle gone? What am I doing wrong?
Before this thread heads further into outer space…
I suspect it [NSCharacterSet] is just broken. Look here, for example:
On Apr 6, 2015, at 12:29 , Greg Parker gpar...@apple.com wrote:
my understanding is that when Cocoa says character it usually means UTF-16
code unit. @.length == 2, for example. Cocoa's string API designed when
Unicode was still a true 16-bit character set.
I would have said so, too,
On Apr 6, 2015, at 16:29 , pscott psc...@skycoast.us wrote:
But what you were describing *would* be UCS-2. To claim UTF-16 support,
variable length encoding must be handled.
It’s pretty much understood — on this list — that NSString is based on UTF-16,
so we tend to cut the corner that’s
On Apr 4, 2015, at 00:07 , Markus Spoettl ms_li...@shiftoption.com wrote:
and not as the documentation indicates
document:shouldClose:contextInfo:
Every time I try to make sense of this and the header comments, my head
starts spinning.
It says that’s the *signature*, not the
On Apr 3, 2015, at 04:00 , Charles Jenkins cejw...@gmail.com wrote:
for char in String( self ).utf16 {
if set.characterIsMember( char ) {
return true
}
Now we’re back to the place we started. This code is wrong. It fails for any
code point that isn’t representable a
On Apr 3, 2015, at 11:19 , Marco S Hyman m...@snafu.org wrote:
The original code will return true only if all code points map to white space.
The “failure” I was talking about is something a bit different. It has two
problems:
1. For Unicode code points that are represented by 2 code values,
On Apr 3, 2015, at 13:18 , Charles Jenkins cejw...@gmail.com wrote:
is there a way in the playground for use to test addresses to make sure
attrStr.string as NSString doesn’t perform a copy?
I doubt it. This is the best I could come up with in a couple of minutes:
import Cocoa
let
On Apr 2, 2015, at 19:28 , Charles Jenkins cejw...@gmail.com wrote:
I can indeed call attrStr.string.rangeOfCharacterFromSet(). But in typical
Swift string fashion, the return type is as unfriendly as possible:
RangeString.Index? — as if the NSString were a Swift string.
I finally read the
On Apr 2, 2015, at 19:28 , Charles Jenkins cejw...@gmail.com wrote:
So after doing two anchored searches, one at the beginning and one at the end
of the string, if I get two different ranges, I’m stuck with two values that
aren’t subtractable to determine the length of the NSRange I need in
On Apr 2, 2015, at 04:54 , Charles Jenkins cejw...@gmail.com wrote:
Swift has a built-in func stringByTrimmingCharactersInSet(set:
NSCharacterSet) - String
There is something wacky going on here — or not. (I know you don’t want to use
this particular method, but I’m just using it as an
On Apr 1, 2015, at 21:17 , Charles Jenkins cejw...@gmail.com wrote:
for ch in String(char).utf16 {
if !set.characterIsMember(ch) { found = false }
}
Except that this code can’t possibly be right, in general.
1. A ‘unichar’ is a UTF-16 code value, but it’s not a Unicode code point.
On Mar 26, 2015, at 17:10 , Graham Cox graham@bigpond.com wrote:
One situation I think would be a suitable candidate for a custom-positioned
alert (or popover) is when a text field fails validation. At the moment,
there's little support for handling this gracefully - I think the default
On Mar 26, 2015, at 16:00 , Graham Cox graham@bigpond.com wrote:
Your requirement isn't clear - do you want a sheet to appear as if unattached
to a host window, just floating in space? Even if you can achieve it, users
will simply assume your app is buggy. Ideas like this are never seen
On Mar 24, 2015, at 17:44 , Daryle Walker dary...@mac.com wrote:
[[NSFileManager defaultManager] moveItemAtURL:location
toURL:finalLocation error:error];
if (error) {
Your code is wrong. You must test the return value of ‘moveItemAtURL:’ for
success or
On Mar 22, 2015, at 16:28 , Graham Cox graham@bigpond.com wrote:
Each cycle of the loop it looks at whether any state of any device has
changed and propagates the change.
What I don’t understand is what this has got to do with run loops at all. You
want to poll some state often, I
On Mar 21, 2015, at 09:07 , Eyal Redler eyred...@netvision.net.il wrote:
I have a rather large ObjC and C project that I want to clean-up in order to
make it re-enterent/thread safe.
There are all sorts of issues I need to deal with here but one of the most
troubling is the rather liberal
On Mar 21, 2015, at 12:48 , Eyal Redler eyred...@netvision.net.il wrote:
I can do a search for static but some are plain globals: variables defined
outside of any method.
Oh, I thought you meant that you want to find references to (known) globals,
but you seem to be saying you want to find
On Mar 21, 2015, at 14:02 , Jens Alfke j...@mooseyard.com wrote:
let s = “……”
some_function(s.UTF8String)
Well, “String” is not “NSString”.
So:
import Cocoa
var str = Hello, playground” as NSString
str.cStringUsingEncoding(NSUTF8StringEncoding) // OK
On Mar 21, 2015, at 16:41 , Jens Alfke j...@mooseyard.com wrote:
Sure, but it’s bridged with NSString. The “Using Swift With Cocoa” book says:
“Swift automatically bridges between the String type and the NSString class.
This means that anywhere you use an NSString object, you can use a
On Mar 21, 2015, at 18:55 , Charles Srstka cocoa...@charlessoft.com wrote:
The thing that’s odd is that the native Swift String’s implementation of
cStringUsingEncoding uses the Foundation NSStringEncoding constants instead
of something that wouldn’t require importing Foundation.
On Mar
On Mar 21, 2015, at 20:43 , Charles Srstka cocoa...@charlessoft.com wrote:
I’m pretty sure that “real” Swift strings are different from NSStrings at
runtime. It’s not like NSString/CFString; it has to do an actual conversion,
and is not toll-free bridged. If you convert between String and
On Mar 21, 2015, at 18:55 , Charles Srstka cocoa...@charlessoft.com wrote:
The implicit conversions between String and NSString were removed in Swift 1.2
I’m sorry, I muddied the waters by using an incorrect description of “bridging”
earlier.
Bridging in Obj-C is something like NSString vs
On Mar 19, 2015, at 13:39 , Bill Cheeseman wjcheese...@gmail.com wrote:
On Mar 19, 2015, at 3:54 PM, Ken Thomases k...@codeweavers.com
mailto:k...@codeweavers.com wrote:
That doesn't help with getting the window controller's -windowDidLoad method
called. In fact, that setting almost
On Mar 12, 2015, at 03:01 , Jonathan Mitchell jonat...@mugginsoft.com wrote:
But surely this is the whole point of the context - to be able to
differentiate between multiple observations to the same object and path.
I think the point is to differentiate between multiple observations to the
On Mar 11, 2015, at 02:36 , Charles Srstka cocoa...@charlessoft.com wrote:
Rewriting all the frameworks in another language
No, no, no, that’s not the suggestion. The suggestion is to rewrite the *SDKs*
in Swift. Public headers only. Almost all of the rewrite would be an automatic
conversion
On Mar 11, 2015, at 14:07 , Charles Srstka cocoa...@charlessoft.com wrote:
Yes, but every time you make any change to the frameworks thereafter, you
have to make sure to keep the two in sync. Better to avoid the duplication of
data.
I’m not having much success in making this point: There
On Mar 11, 2015, at 10:53 , Charles Srstka cocoa...@charlessoft.com wrote:
It would also be much more work.
Actually, I don’t think so, once you follow through the argument…
Even today, the ability to cross-translate between Swift an Obj-C exists
(within the Swift compiler, though used only
On Mar 11, 2015, at 11:31 , Sean McBride s...@rogue-research.com wrote:
If you're curious I can put it online.
Sure, I’d be interested to see it.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator
On Mar 11, 2015, at 14:49 , Marco S Hyman m...@snafu.org wrote:
Perhaps you are thinking of them that way because of your C/Obj-C background.
I was thinking of them that way because I didn’t have a better term. :)
Think of them instead as abbreviated .swift files.
Very good. So, in the
On Mar 11, 2015, at 15:03 , Sean McBride s...@rogue-research.com wrote:
It's here:
I just spent a few minutes with it. A couple of things:
— I don’t think it’s a very good idea to do this (slightly abbreviated from
your source):
- (void)bind:(NSString*)inBindingName
On Mar 11, 2015, at 00:25 , Charles Srstka cocoa...@charlessoft.com wrote:
You know, this sounds like a good candidate for a collection contents
annotation, similar to the nullability annotations that were recently added
to Xcode. If there was a way to notate in an Objective-C header that
On Mar 10, 2015, at 22:57 , dangerwillrobinsondan...@gmail.com wrote:
This is one extra thing you have to really get used to with Swift. You learn
Swift, then learn that it effectively requires some constant special handling
for NSObject's descendants.
If you're using the frameworks
On Mar 10, 2015, at 22:26 , Bavarious bavari...@icloud.com wrote:
Much like in Objective-C. If you write
void someFunction(id obj) {
NSLog(@%@, [obj bundleURL]);
}
the compiler picks *some* method that matches that selector
So how come this behavior has been imported into Swift?
On Mar 10, 2015, at 10:50 , Sean McBride s...@rogue-research.com wrote:
Can anyone think of a sitation where using removeObserver:forKeyPath: works
correctly, then modernizing the code to use
removeObserver:forKeyPath:context: breaks things?
If something else is using a conflicting
On Mar 8, 2015, at 12:02 , Patrick J. Collins patr...@collinatorstudios.com
wrote:
Except it seems to have a default unchangable width of 5px... ???
In IB, if you set the metrics inspector tab to “Alignment” rather than “Frame”,
it shows as 1, not 5. The actual frame of the NSBox view isn’t
On Mar 5, 2015, at 15:20 , Shane Stanley sstan...@myriad-com.com.au wrote:
The same value was used via bindings to set the Font Size in the table.
Er, what exactly was bound to what?
In the view-based version, the text field would typically be bound to
‘objectValue.something’ (or possibly
On Mar 5, 2015, at 17:06 , Ken Thomases k...@codeweavers.com wrote:
Unfortunately, the solution is clumsy. You have to use a separate view NIB
for the table cell view. That means you can't really design the view-based
table in the NIB that contains the table view. The table view is in
On Mar 5, 2015, at 16:09 , Shane Stanley sstan...@myriad-com.com.au wrote:
In the cell-based table, the table's (sole) column's Font Size is bound to
the shared user defaults controller with a Controller Key of values and Model
Key Path of tableTextSize.
The buttons are in a radio group,
On Mar 4, 2015, at 18:55 , Graham Cox graham@bigpond.com wrote:
You can't see the thumb unless the bar is visible, and if it's not visible
you can't click it. To make it visible you have to scroll which shows the
bars, but only for a short time ( 0.5 second). This means that your only
On Mar 2, 2015, at 00:13 , Rick Mann rm...@latencyzero.com wrote:
The current workaround is to launch the app by tapping on it on the device,
then tap Trust in the resulting dialog. Then you can launch it. But I need
to debug my app's first run, and I see no way to do that.
I may be
On Mar 2, 2015, at 02:44 , Ben ben_cocoa_dev_l...@yahoo.co.uk wrote:
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 grid
I don’t see that anyone has yet asked the question of why the grid needs to
have
On Feb 24, 2015, at 08:14 , Charles Jenkins cejw...@gmail.com wrote:
A structure?!? I did look it up in the documentation, and all I found was
“the basic type for all floating-point values.” That the basis of all
floating-point types could be a structure never occurred to me.
That’s not
On Feb 23, 2015, at 11:52 , Kyle Sluder k...@ksluder.com wrote:
So the type of
foo?.lowercaseString is String?.
Yes, I agree, so the OP’s *original* error message was correct, but the
question is what is the type of ‘foo?.lowercaseString!’, and that depends on
the precedence of the “!”
On Feb 20, 2015, at 11:15 , Alex Kac a...@webis.net wrote:
So with that in mind, has anyone tackled a conversion process of reading in
UIColor data into NSColor via CoreData?
I suspect that *really* solving this is going to be impossible.
When you say “UIColor data”, do you mean the data
On Feb 17, 2015, at 12:35 , John MacMullin john.macmul...@cox.net wrote:
So it appears that I don’t need shouldEditTableColumn because of the
bindings. Where is this in the docs? (rather than random cocoa sources).
I’m not sure it’s got anything to do with bindings. Configuring table views
On Feb 17, 2015, at 06:31 , Charles Jenkins cejw...@gmail.com wrote:
In my target’s Info tab, I have one Document Type: I filled in its Name,
Class (the class of my Document window controller), and Extension. I selected
Editor as the Role and made sure “Document is distributed as a bundle”
On Feb 16, 2015, at 12:30 , Ken Thomases k...@codeweavers.com wrote:
A view controller and its view should be reusable in different contexts, or
at least designed as though it might be.
To round out the larger discussion for posterity, I’d add that when using an OS
X storyboard, the picture
I think the real technical limitation is performance. An extra window means
more memory usage (for backing stores), more CPU and/or GPU processing (for
compositing backing stores), and more power consumption (shorter battery life).
You also have to be a bit careful about going your own way on
On Feb 15, 2015, at 14:29 , Graham Cox graham@bigpond.com wrote:
I did try that - but it doesn't show the icon, just a generic question mark.
For 3 or 4 years now, I’ve almost always been getting that question mark
regardless of how the icon is defined. :)
When I said “works anyway”, I
On Feb 15, 2015, at 13:25 , Graham Cox graham@bigpond.com wrote:
I've migrated my app icon to use an asset catalogue as per current
recommendations, but doing the same with my document icon, I can't seem to
link it to my document type entries (Xcode 6.1.1).
Did you try just pasting the
On Feb 10, 2015, at 11:23 , Jerry Krinock je...@ieee.org wrote:
I’ve always wondered why, when you’re dragging a window around a non-Retina
screen, the anti-aliasing doesn’t show a “comb filter” kind of effect, with
different lines getting fuzzy and sharp as they are dragged on and off
On Feb 10, 2015, at 20:23 , Steve Mills sjmi...@mac.com wrote:
-Enabled (Keywords Array Controller.selection.@count) using a custom value
transformer that returns true only if the count is 1
-Enabled2 (File's Owner.comboStringValue.length)
That didn't work. Swapping them did. Smells buggy
On Feb 10, 2015, at 21:45 , Steve Mills sjmi...@mac.com wrote:
I'm not sure about the KVO compliancy. I'm still a newbie in this area. Let
me give you the rundown on the stuff that deals with it.
@interface WindController : NSWindowController
@property (weak) NSString* comboStringValue;
On Feb 10, 2015, at 15:16 , Graham Cox graham@bigpond.com wrote:
Right-mouse click to show a menu on a table row is really working badly since
I updated to 10.10.2.
There was a bug introduced in 10.10.2 that broke NSClickGestureRecognizer, and
this might possibly be the source of what
On Feb 9, 2015, at 19:24 , Ken Thomases k...@codeweavers.com wrote:
-beginSheetModalForWindow:completionHandler: is a method on NSAlert and
NSSavePanel.
And the last detail:
Xcode let you compile it where you did because ‘NSApp’ happens to be declared
as ‘id’ for inscrutable historical
FWIW (and while we wait for Jerry to tell us what was in the missing screen
shot), I’ve abandoned the “offset it by 0.5 points” approach, in the last year
or two. I don’t necessarily have an unarguable justification, but my reasoning
runs along these lines:
1. For general drawing, when the
On Feb 5, 2015, at 23:43 , Steve Mills sjmi...@mac.com wrote:
[_NSFaultingMutableSet 0x620246e0
addObserver:forKeyPath:options:context:] is not supported. Key path: count
Is it not possible to bind to an entity's relationship properties?
You can’t bind *through* an array or set
On Feb 5, 2015, at 13:13 , Raglan T. Tiger r...@crusaderrabbit.net wrote:
What does [super windowDidLoad} accomplish in the subclass implementation of
-windowDidLoad and is it necessary?
If “the subclass” is a direct subclass of NSWindowController, then it does what
the NSWindowController
On Feb 4, 2015, at 05:43 , Jonathan Mitchell jonat...@mugginsoft.com wrote:
Is it normal for superclasses to message during dealloc?
I would still like to know what people’s expectations are here.
It is normal for classes to message during dealloc, so it’s normal for
superclasses to do so.
On Feb 3, 2015, at 12:07 , Steve Mills sjmi...@mac.com wrote:
(The main type is a package, if that matters.) The Save dialog correctly
shows my type at the top of the Type popup, it saves it with the correct
extension, and Finder shows that it's a package, not a folder. But when I
drag
On Feb 2, 2015, at 14:06 , Graham Cox graham@bigpond.com wrote:
If my NSDocument subclass opens a file of a certain type, and then I do a
Save As (option click the File menu), choose a new name and CHANGE THE
EXTENSION, shouldn't the document be given the new typeName in
On Feb 2, 2015, at 15:21 , Graham Cox graham@bigpond.com wrote:
The app supports 4 document types. It imports all 4 UTIs corresponding to
these types, but it exports only two.
This doesn’t sound right to me. My understanding is that a UTI string is one of
three things:
1. A standard
On Jan 29, 2015, at 16:26 , Graham Cox graham@bigpond.com wrote:
'atomic' attribute on property 'action' does not match the property inherited
from 'NSControl'
The 10.10 SDK uses real @property declarations, but doesn’t specify atomicity,
which means the property defaults to atomic. You
On Jan 29, 2015, at 17:03 , Graham Cox graham@bigpond.com wrote:
Regarding 'nonatomic', in previous times, I've had a different warning when I
used @synthesize with an assigned ivar and the property was not 'nonatomic'.
Maybe that's changed but as a result of it I got conditioned to
On Jan 29, 2015, at 20:45 , Andrew White andrew.wh...@audinate.com wrote:
I tried subclassing NSOutlineView and catching frameOutlineOfCellAtRow,
adding to theRect.origin.x and subtracting from theRect.size.width. This
didn't seem to make a difference. I have verified that the overridden
On Jan 29, 2015, at 22:24 , Andrew White andrew.wh...@audinate.com wrote:
The code I've inherited uses this to draw rounded rects on the background of
each row. So if I want to modify the width and position of those rects, I
need to feed information about the item in
On Jan 29, 2015, at 21:16 , Ken Thomases k...@codeweavers.com wrote:
the getter has to do the equivalent of retain+autorelease atomically
I was thinking that the same would have to be true of local variable accesses,
too, but I see (if I see) the difference is that references from local
On Jan 29, 2015, at 19:47 , Greg Parker gpar...@apple.com wrote:
`atomic` makes a big difference for a strong or weak property of object type
because objects have retain counts.
Er, I feel stupid but I don’t understand. How do the retain counts affect this?
On the one hand, properties are
901 - 1000 of 3195 matches
Mail list logo