On Jan 29, 2015, at 22:21 , Ken Thomases k...@codeweavers.com wrote:
Huh? It has to be an autorelease and not a release because the object needs
to survive to the caller's scope.
Release meant “eventual relinquishment of ownership”. Since we’re talking
about ARC, I wasn’t assuming that it
On Jan 29, 2015, at 17:18 , Roland King r...@rols.org wrote:
I can find this
http://lists.apple.com/archives/objc-language/2013/Apr/msg00119.html
http://lists.apple.com/archives/objc-language/2013/Apr/msg00119.html, is
that what you were remembering or is there something stronger my
On Jan 28, 2015, at 16:16 , Charles Jenkins cejw...@gmail.com wrote:
I need to have a File Export command to save the document in OpenXML
format. I’ve done some research in the Developer Library, and the best clues
I’ve found so far are in the Sketch app. Sketch manages multiple output
On Jan 26, 2015, at 23:32 , Jerry Krinock je...@ieee.org wrote:
You seem to be saying that the only example given by Apple is a bad example,
because it is a a nontypical, special case. I mean, most attributes in most
apps are objects, not scalars.
I’m not sure that it’s “bad”, though it
On Jan 27, 2015, at 11:06 , Richard Charles rcharles...@gmail.com wrote:
That is a key-value coding method.
It’s not, as Kyle just said.
FWIW, there is yet another way to get to backing store from a custom primitive
accessor — define another, private, Core Data property, and use *its*
On Jan 27, 2015, at 12:44 , Keary Suska cocoa-...@esoteritech.com wrote:
That part of the conversation was private between you and Quincey. I am
simply curious as I can't imagine why one would want to.
It wasn’t intentionally private. It was just one of those cases where a post
with a lot
On Jan 27, 2015, at 17:21 , Jerry Krinock je...@ieee.org wrote:
Compiler does *not* warn if you have a custom primitive setter without a
getter.
FWIW, the compiler doesn’t warn you if you have any setter without a getter.
I also tried to get it to compile without declaring the instance
On Jan 25, 2015, at 12:33 , Trygve Inda cocoa...@xericdesign.com wrote:
It does seem like if I remove a call to
NSData* imageData = [[self myImageRep]
representationUsingType:NSJPEGFileType properties:imageProperties];
It no longer crashes, but the crash happens 3-5 seconds after this
On Jan 20, 2015, at 11:13 , Steve Mills sjmi...@mac.com wrote:
I can go to Finder and Undo or Put Back exactly like I should be able to do
… I can go to Finder and Undo or Put Back exactly like I perversely want to be
able to do …”
There. I fixed your typo for you. ;)
On Jan 19, 2015, at 15:31 , Kevin Meaney k...@yvs.eu.com wrote:
If I'm reading frames from a HD video, doing some processing of those frames
and writing a HD video with those frames there is a good chance input and
output are using the same profile. When that is the case I'd like not to do
On Jan 19, 2015, at 04:02 , Kevin Meaney k...@yvs.eu.com wrote:
What I'd like to be able to do is to compare profiles obtained this way with
what I think must be AVFoundation's equivalent e.g.:
AVVideoColorPropertiesKey : [
AVVideoColorPrimariesKey :
On Jan 18, 2015, at 17:22 , Kevin Meaney k...@yvs.eu.com wrote:
How can I make sure that the CGBitmapContext and CVPixelBuffer view the pixel
data in the same way from a color matching perspective?
You can attach a color space to the pixel buffer as follows:
CVBufferSetAttachment
On Jan 18, 2015, at 00:10 , Rick Mann rm...@latencyzero.com wrote:
I'm building a view that renders a bunch of objects (a drawing canvas). Some
of these render differently if the objects are selected. As I iterate through
the list of objects to render, I need to test if each one is
On Jan 18, 2015, at 12:45 , Trygve Inda cocoa...@xericdesign.com wrote:
NSMutableDictionary* collection; // keys are myID, values are MyObject
for (MyObject* object in [[self collection] allValues])
{
[collection removeObjectForKey:[object myID]];
}
What Ken said, plus …
— If the
On Jan 15, 2015, at 16:16 , Jerry Krinock je...@ieee.org wrote:
Presumably I could get the control I want by overriding and re-implementing
-openDocument: to actually use -currentDirectory the way the documentation
says it should.
I’m not entirely sure you should do that, at least not
On Jan 14, 2015, at 20:39 , N!K pu56ucl...@alumni.purdue.edu wrote:
I’m trying to learn more about drawing. One stumbling block was getting an
NSBezierPath to change size proportional to the window size when the corner
is dragged.
This is the wrong way to approach the problem. Scaling the
On Jan 13, 2015, at 21:25 , N!K pu56ucl...@alumni.purdue.edu wrote:
I have not been able to find a reason for this behavior. . I don’t know how
to reveal the point between passes where bounds is actually changed. It does
not happen in any other NSView projects of mine; drawRect runs only
On Jan 11, 2015, at 15:07 , Uli Kusterer witness.of.teacht...@gmx.net wrote:
Short caveat: Do not get the actual OpenSSL. Get LibreSSL
Jumping to a new thread here, since I’m going OT for the original thread. But I
have an actual question at the end.
I wondered about this issue just
On Jan 10, 2015, at 08:46 , ecir hana ecir.h...@gmail.com wrote:
if I figure out something useful […]
Seems to me that this discussion has gone off the rails. Aside from a caveat
that, of course, things may have changed slightly in Yosemite in ways that we
haven’t noticed yet, NSTrackingArea
On Jan 10, 2015, at 11:42 , ecir hana ecir.h...@gmail.com wrote:
And that is where it stops working, no need to visit Neptune. The part of
custom view over the textview stops displaying the defined cursor, at shows
I-beam cursor instead.
Excellent! (Not that it fails, but that you have
On Jan 5, 2015, at 05:12 , Charles Jenkins cejw...@gmail.com wrote:
reloadItem: doesn't request a view
What does “request a view” mean?
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator
OMG, did they release Xcode 4 again? No? Then what are we talking about?
[I’m begging you all to take your opinions on this subject somewhere where I
don’t have to see them.]
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post
On Jan 5, 2015, at 10:48 , Charles Jenkins cejw...@gmail.com wrote:
Well, the view-based outline view calls my delegate to get the view pointer
for a given item, and in response my delegate dutifully creates one, sets its
text and image, and hands it over.
Creating the cell view and
On Jan 4, 2015, at 05:39 , Roland King r...@rols.org wrote:
I had to reload the parent row to get it to call the isItemExpandable and
other methods to either show a new disclosure triangle or remove one which
was no-longer valid.
That sounds at least halfway to being a bug. However, since
On Jan 3, 2015, at 12:13 , Charles Jenkins cejw...@gmail.com wrote:
These things work, and I can verify that the object graph in the model has
changed correctly. But to see the changes reflected in my Source View, I have
to collapse and re-expand the affected nodes in order to have them
On Jan 2, 2015, at 09:35 , Peters, Brandon bap...@my.fsu.edu wrote:
I am trying set up my application to do some condition compilation to address
a deprecated method in 10.9 that has been replaced in 10.10 with another
method. I am running Xcode Version 6.2 (6C86e, beta). Here is the code:
On Jan 1, 2015, at 13:25 , Eden Smallwood zeppenw...@lafn.org wrote:
How does Apple know to make the text white in one place and black in
the other?
How are you choosing the color for your text? Have you tried [NSColor
textColor] or perhaps [NSColor controlTextColor]?
On Jan 1, 2015, at 17:20 , Graham Cox graham@bigpond.com wrote:
I'm using Allocations, but I'm finding the volume of data a bit overwhelming.
As an aside, Leaks shows nothing at all. Does that mean I'm not actually
leaking anything?
Forget Leaks, it’s an utter waste of time*. Use
On Dec 29, 2014, at 16:27 , SevenBits sevenbitst...@gmail.com wrote:
The thing is, I am not using iCloud and that entitlement isn't even present
in my entitlements file. Those messages are from just opening the
NSOpenPanel, and doing anything else; clearly, Powerbox is flipping out.
AFAIK,
On Dec 20, 2014, at 12:08 , H Miersch hmier...@me.com wrote:
if I DO call [self setTranslatesAutoresizingMaskIntoConstraints:NO]; on the
subview, the window and its view behave normally, but the subview doesn't
appear, its drawrect method is not called, nothing.
so what am i doing wrong?
On Dec 20, 2014, at 13:09 , H Miersch hmier...@me.com wrote:
should i add the constraints to the superview instead of self?
The height and width constraints should be on the view itself.
I’d be more concerned about timing: Did you add constraints before or after
layout had occurred, and if
, since they are (IMO) crucial to the issue:
On Dec 20, 2014, at 13:50 , H Miersch hmier...@me.com wrote:
On 20. Dec 2014, at 21:26, Quincey Morris
quinceymor...@rivergatesoftware.com
mailto:quinceymor...@rivergatesoftware.com wrote:
I’d be more concerned about timing: Did you add
On Dec 19, 2014, at 05:36 , Charles Jenkins cejw...@gmail.com wrote:
Could it be that even though the layout manager's temporary attributes are
designed for purposes like syntax highlighting, folks don't actually use them
because they don't work right during edits?
I tried to use them
On Dec 19, 2014, at 13:39 , Charles Jenkins cejw...@gmail.com wrote:
But when it comes time to save to a file format selected from AppKit
additions (e.g. RTFFromRange:documentAttributes:), any unusual,
application-specific attributes will be lost. There is no built-in file
format you can
On Dec 16, 2014, at 20:38 , Charles Jenkins cejw...@gmail.com wrote:
whether it’s a bug that should be reported to Apple
From the 10.8 release notes
(https://developer.apple.com/library/mac/releasenotes/AppKit/RN-AppKitOlderNotes/):
Auto Layout NSSplitView improvements
In 10.8,
On Dec 11, 2014, at 02:56 , ecir hana ecir.h...@gmail.com wrote:
Btw., when I don't do `setDocumentView` for the textviews, the cursor shows
up as expected.
Why is this happening? Is it possible to have the resizing cursor over the
whole divider frame?
My guess is that there’s something
On Dec 10, 2014, at 17:54 , ecir hana ecir.h...@gmail.com wrote:
My question is, how to have a thin divider which has wider hit area than
1px? In other words, I like how `NSSplitViewDividerStyleThin` looks and how
`NSSplitViewDividerStyleThick` behaves. Is it somehow possible to have both?
On Dec 1, 2014, at 10:33 , Raglan T. Tiger r...@crusaderrabbit.net wrote:
I see no warnings about using APIs not supported in 10.5.
My program crashes on 10.5.8 ... I do not haveth report from the customer as
yet.
Is there an efficient way to isolate APIs not supported ?
There’s no
On Dec 1, 2014, at 10:41 , Andreas Höschler ahoe...@smartsoft.de wrote:
What the heck does that mean? How can they remove these access methods?
They didn’t. What they did is to change the access method declarations to
@property declarations. The change shows up in the API changes as a
On Nov 21, 2014, at 17:08 , Richard Charles rcharles...@gmail.com wrote:
A header files forces you to separate the interface from the implementation.
I always thought that was a good thing but apparently not.
It’s a good thing for the reasons why you think it’s a good thing, but it’s
also a
On Nov 4, 2014, at 14:39 , Luther Baker lutherba...@gmail.com wrote:
I've created a project on github that essentially duplicates the problem I'm
having.
$ git clone https://github.com/EffectiveProgramming/LBOutlineViewDemo.git
I have 2 items in my outline view - if I select, edit and then try to reload
the item at index=1.
Here is new information. What does “edit” mean? Are you talking about editing
the text in the row in the outline view, or editing properties of the object
represented by the row elsewhere in
On Nov 3, 2014, at 04:12 , Luther Baker lutherba...@gmail.com wrote:
Or perhaps you are mis-tracking the selected item.
I've double checked what I thought I knew -- but as you imply, who knows at
this point.
You are mis-tracking the selected item, I think. The delegate method
On Nov 3, 2014, at 19:54 , Jerry Krinock je...@ieee.org wrote:
The highest line in the stack in my code is #12. Line #11 indicates that the
crash occurs when AppKit attempts to post a notification, which I suspect is
a KVO notification. (But is NSNotificationCenter used in KVO?)
No, it
On Nov 2, 2014, at 16:23 , Luther Baker lutherba...@gmail.com wrote:
Is Xcode worth considering here? Tap a class file and you get details about
that class in the right pane. Open a XIB ... Tap something in the XIB and the
details pane changes to reflect the XIB selection, not the file
On Nov 2, 2014, at 20:18 , Luther Baker lutherba...@gmail.com wrote:
So, before we get to the 'group' question - I seem to be having some
difficulty with the item specific API. If I change the call from reloadData
to reloadItem ... and if we consider reloading the selected row ... then:
On Oct 30, 2014, at 11:19 , edward taffel etaf...@me.com wrote:
i agree! do you feel it should always track? [anyone else?]
There’s an argument that says it should change the cursor if and only if mouse
down while the cursor is changed would “grab” the splitter. (So that would be a
“yes” in
On Oct 30, 2014, at 12:00 , Bill Cheeseman wjcheese...@gmail.com wrote:
There is one behavior I can't figure out. The Application Switcher's window
background is vibrant, and so is the darker rectangle that marks the
application to be made active, but the icon images are not vibrant.
In
On Oct 29, 2014, at 10:26 , Steve Mills sjmi...@mac.com wrote:
As I said in my first message, I'm trying to *prevent* this behavior on the
entire window for all subviews withOUT having to subclass every conceivable
class that I might add to my window.
You can’t, because it’s not window
On Oct 29, 2014, at 12:15 , Kyle Sluder k...@ksluder.com wrote:
Dangerous things should be undoable or have a confirming alert anyway.
Steve writes music software. To pick an example, disabling recording on
an active input track should NOT require a confirmation alert, even
though it's a
On Oct 27, 2014, at 15:10 , Torsten Curdt tcu...@vafer.org wrote:
My first thought was that passing in nil as the owner would actually
default to self I really want - but that does not seem to be the case.
It’s documented as “cannot be nil”.
On the next thought
controller = [self
On Oct 27, 2014, at 18:16 , Torsten Curdt tcu...@vafer.org wrote:
I know - it smells horrible.
It doesn’t just smell, it’s actually wrong.
My next thought was to just add
- (id) initWithMyWindowNibPath:(NSString *)nibPath
{
return [super initWithWindowNibPath:nibPath
On Oct 24, 2014, at 18:38 , Rick Mann rm...@latencyzero.com wrote:
Oh! I think I figured out what I'm doing wrong. The typealias doesn't
understand local names, and that makes some sense. I can just get rid of
those altogether and be find.
I don’t understand what you’re saying here. What
On Oct 22, 2014, at 14:10 , Beinan Li li.bei...@gmail.com wrote:
And it stops crashing if I turn off ARC.
I don’t understand this. How do you turn off ARC? Are you just changing the
build setting that controls ARC?
It sounds like there are no source code changes. Unless you’ve done something
On Oct 21, 2014, at 13:33 , Rick Mann rm...@latencyzero.com wrote:
Honestly, though, I don't see why Swift can't just deal with plain enums.
Because it’s not an Obj-C compiler?
I suspect that the reason you saw the “incomplete” behavior is that you
declared the enum in two parts:
enum
On Oct 21, 2014, at 14:35 , Rick Mann rm...@latencyzero.com wrote:
On Oct 21, 2014, at 14:26 , Quincey Morris
quinceymor...@rivergatesoftware.com wrote:
Honestly, though, I don’t see why you can’t just deal with writing enums the
“compatible” way.
Because the file whence it comes
On Oct 21, 2014, at 16:25 , Rick Mann rm...@latencyzero.com wrote:
But the names of the elements all have to start with the type name, and that
means not only changing the entire code base that uses the header, but also
changing the naming convention used by that code base. Sure, we can do
On Oct 20, 2014, at 06:50 , Leonardo mac.iphone@gmail.com wrote:
I really need to fill the rect with flat red and stroke it with a 10
points-width 50% transparent gray border.
What does that mean?
Are you trying to fill the entire rect with red, and wrap a 10-point stroke
around it
On Oct 18, 2014, at 23:46 , Rick Mann rm...@latencyzero.com wrote:
The rules on initializers don't make sense to me, in all honesty.
Yes, but that tells us more about you than about Swift — specifically, it tells
us that you’re more focused on what would ease your coding task in this one
On Oct 19, 2014, at 00:24 , Rick Mann rm...@latencyzero.com wrote:
Well, I'm not sure I agree with that. Every initializer in a class should
work correctly.
If, hypothetically, a subclass was allowed to call any initializer in the
superclass, then the result would be an object that was
On Oct 19, 2014, at 00:56 , Rick Mann rm...@latencyzero.com wrote:
The subclass initializer still has to initialize itself. It knows what the
superclass initializer is doing, and it knows what it still needs to do.
That's true even with the rules Swift currently imposes.
I don’t actually
On Oct 19, 2014, at 01:20 , Rick Mann rm...@latencyzero.com wrote:
I don't remember now, but I think it complained that I was overriding an
inherited method.
Well, double-checking the syntax earlier in the chapter, you will need to
declare it “convenience”.
On Oct 19, 2014, at 01:28 , Rick Mann rm...@latencyzero.com wrote:
you will need to declare it “convenience”.
Tried that, too.
Ugh! Now you made me create a project to try it.
It looks like the problem is that ‘init’ is already a designated initializer,
though not of NSWindowController.
On Oct 17, 2014, at 09:59 , Kevin Meaney k...@yvs.eu.com wrote:
I got the assigning to a property working when that property was declared as
part of the class, but not when it has been declared in the optional section
of a protocol. So I was able to duplicate what you did Roland. But no
On Oct 15, 2014, at 23:05 , Graham Cox graham@bigpond.com wrote:
I don't know, but it seems to bethat my system is screwed up in some way that
the usual lsregister rebuild isn't clearing. If that's the case then this
screw-up occurred using Xcode 6.0.1's UTI editor plus launching my app,
On Oct 10, 2014, at 13:34 , Matthew LeRoy mle...@minitab.com wrote:
Not entirely sure where to go from here.
It’s not clear to me whether the deferral of the open panel’s disappearance is
a mere implementation detail of NSDocumentController, or if it’s a consequence
of what you chose to do in
On Oct 9, 2014, at 07:21 , Matthew LeRoy mle...@minitab.com wrote:
My document-based application can potentially display an app-modal dialog via
[NSApp runModalForWindow:] from within my override of [NSDocument
readFromURL:ofType:error:]
I dunno, but this seems like a really, really bad
On Oct 9, 2014, at 12:33 , Matthew LeRoy mle...@minitab.com wrote:
I agree this sounds like a better idea. There’s no good reason I can’t prompt
for and validate the password prior to actually opening and reading the
document contents, provided I have access to the document’s URL. However,
On Oct 9, 2014, at 13:44 , Matthew LeRoy mle...@minitab.com wrote:
so -[NSDocumentController beginOpenPanelWithCompletionHandler:] is what I
would be using.
Hmm, OK. So where do I provide the custom completion handler?
Ah, I see, I thought you were already *providing* a completion handler
(reposted after editing for length)
On Oct 7, 2014, at 22:12 , Gerriet M. Denkmann gerr...@mdenkmann.de wrote:
Is there a way for the app to find out how much memory it is currently using?
Here’s my take on this, which may be way off base:
There’s really no practical way to answer such
Why not enforce a minimum row count that accounts for the height of the table.
Then, have your data source provide dummy rows for the ones at the top, when
the actual count is less than the enforced count. You can have a special table
cell for the dummy rows, or just hide all the content that
On Sep 23, 2014, at 11:36 , Lee Ann Rucker lruc...@vmware.com wrote:
On Sep 23, 2014, at 9:15 AM, Jonathan Taylor jonathan.tay...@glasgow.ac.uk
wrote:
[*] One slight glitch - if I add an object to the NSMutableArray then it
does not immediately show up in the table, I have to call
On Sep 17, 2014, at 19:18 , Charles Jenkins cejw...@gmail.com wrote:
What configuration am I missing to get a document package which appears as a
single file?
You edit this directly in Xcode, though you’re correct that the documentation
doesn’t really pull all the pieces together to
On Sep 15, 2014, at 19:12 , Charles Jenkins cejw...@gmail.com wrote:
// What the heck do I do here? How to I update fw's contents?
You do the “obvious” thing — remove the existing file wrapper and create a new
one.
The clearest logic for this would be:
If this file’s content
On Sep 14, 2014, at 00:57 , Aandi Inston aa...@quite.com wrote:
Why? Really, why? Certainly there are APIs where we have to use URL's and
we have to convert the path into a URL, but where a non-deprecated
path-based URL exists, what current or future obstacles do you foresee? The
URL doesn't
On Sep 14, 2014, at 11:37 , Charles Jenkins cejw...@gmail.com wrote:
Okay, here’s a point on which I may need education. Xcode created my project
with an images.xcassets folder right there in it, and that’s where I’m adding
my images. Do you mean that’s not enough? I need to add
On Sep 14, 2014, at 13:36 , Luc Van Bogaert luc.van.boga...@me.com wrote:
when I close the panel and reopen it again, it seems that the panel has lost
a reference to the document and it doesn't display the document's properties
anymore.
Actually, I meant to suggest it was a *bad* idea to
On Sep 14, 2014, at 19:47 , Charles Jenkins cejw...@gmail.com wrote:
let noWrappers: [AnyObject] = []
self.theFileWrapper = NSFileWrapper( directoryWithFileWrappers:
noWrappers )
When I start typing “directoryWithFileWrappers,” Xcode displays its
suggestion list showing the
On Sep 13, 2014, at 12:28 , Charles Jenkins cejw...@gmail.com wrote:
After calling bundle.pathForResource:ofType:, imageName is nil. I think what
I’m doing is what the Resource Programming Guide says to do. How am I getting
it wrong?
a. Yes, but did you check whether bundle or imageFileName
On Sep 13, 2014, at 21:33 , Charles Jenkins cejw...@gmail.com wrote:
Of course I meant that the imageFileName returned by the API call is nil.
Ah, OK, but you still need to verify that everything is in place. For example,
if you forgot to add the asset folder to the target, the image files
On Sep 12, 2014, at 13:57 , Luc Van Bogaert luc.van.boga...@me.com wrote:
When I try to close the inspector panel in my document base application, I'm
getting the default alert message to save the document if it has unsaved
edits. Is there a way to disable this behaviour when closing an
On Sep 12, 2014, at 14:40 , Quincey Morris
quinceymor...@rivergatesoftware.com wrote:
Set ‘shouldCloseDocument’ to NO on the panel.
I mean on the panel’s window controller, of course. ;)
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com
On Sep 9, 2014, at 04:16 , Charles Jenkins cejw...@gmail.com wrote:
Actually, if there is a space between the underscore and the name, Xcode
presents a warning saying it’s extraneous. I cut and pasted the original
prototypes from the documentation in order to avoid typos, and Xcode
On Sep 9, 2014, at 17:45 , Charles Jenkins cejw...@gmail.com wrote:
My question is: assuming that my Document class is indeed acting as the
outline view’s delegate, which of these graphical objects is supposed to be
the one calling outlineView:objectForTableColumn:byItem:?
That’s a data
On Sep 8, 2014, at 16:00 , Charles Jenkins cejw...@gmail.com wrote:
I changed the relevant method to this:
func outlineView(
_outlineView: NSOutlineView!,
objectValueForTableColumn tableColumn: NSTableColumn!,
byItem item: AnyObject!
) - AnyObject!
{
let node =
On Sep 5, 2014, at 10:15 , Britt Durbrow
bdurb...@rattlesnakehillsoftworks.com wrote:
If I can’t find an officially supported way to do this, then yeah - that’s
what I figure I’ll have to do. I was trying to avoid it due to user
experience issues; requiring a second login, etc is
On Sep 5, 2014, at 13:31 , Jonathan Guy jonathan...@mac.com wrote:
The callback is basically structured like this
__block BOOL accept;
if ([NSThread isMainThread]) {
accept = [[Controller sharedController] shouldIAccept:certInfo];
}
else {
On Sep 2, 2014, at 09:47 , Jens Alfke j...@mooseyard.com wrote:
So far I've been using NSItemReplacementDirectory, but this has a couple of
problems:
(1) It creates a new visible directory right next to the permanent location,
called (A Document being saved by $APP) where $APP is the app
On Sep 2, 2014, at 16:10 , Jens Alfke j...@mooseyard.com wrote:
This is on iOS.
Then is there any downside to letting it appear beside the final location?
Where does an app like Pages create its autosaves? (AFAIK, autosave uses this
same API for its temp folder.)
IIRC, in iOS the
On Aug 28, 2014, at 21:09 , Graham Cox graham@bigpond.com wrote:
Actually that will work for me. I only need to support size, points and rects
at the moment, so it's easy enough to use the -objCType to see which one I
have and then just change the field according to which specific string
On Aug 20, 2014, at 20:32 , Gerriet M. Denkmann gerr...@mdenkmann.de wrote:
But I thought that maybe memmove might be more efficient:
let dest : UnsafeMutablePointerVoid = arr + lowerIndex + 1
Er, no. There are multiple things wrong with this:
— There’s nothing in the Swift array API
On Aug 19, 2014, at 00:32 , Daryle Walker dary...@mac.com wrote:
I looked for -runPageLayout: in NSApplication.h, and I couldn’t find it.
That’s why I thought this action may be obsolete and unsupported.
However…
There are a lot of methods in the HTML docs for NSApplication. I thought
On Aug 19, 2014, at 02:06 , Gerriet M. Denkmann gerr...@mdenkmann.de wrote:
But what about:
SELPlus aSelector = BetterSelectorFromString ( aSelectorName, returns
object which does NOT need to be released );
id a = [ self performSelector: aSelector ];
Or (if modifying SEL is
On Aug 17, 2014, at 21:36 , Gerriet M. Denkmann gerr...@mdenkmann.de wrote:
Step 1 is to learn how to convert things one does in Obj-C into Swift.
Step 2 would be to think in Swift and do things in a swifty way.
And you are right: I am currently at Step 1, and am far away from having
On Aug 16, 2014, at 13:53 , Charles Srstka cocoa...@charlessoft.com wrote:
You can't.
Er, am I missing something, or is this not a case that generic functions handle
quite easily?
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do
On Aug 15, 2014, at 14:09 , Laurent Daudelin laur...@nemesys-soft.com wrote:
Now, I implement *tableView:viewForTableColumn:row:*. Based on an array of
dictionaries, I set the various UI items in the tableCellView that I get
calling *makeViewWithIdentifier:owner:* passing the tableColumn
(reposted for formatting)
On Aug 15, 2014, at 16:24 , Daryle Walker dary...@mac.com wrote:
As I’m stripping out the NSDocument stuff, I realize that I need some sort of
global object to hold each window(-controller) as I create them, otherwise
ARC will purge them soon after creation. The
On Aug 14, 2014, at 11:44 , Gerriet M. Denkmann gerr...@mdenkmann.de wrote:
But: is this thread-safe? What if several threads are trying to use the
sharedThing?
Jean-Daniel is teasing you slightly. It *is* thread-safe. For the reason, look
at the August 1 entry in the Swift blog:
On Aug 14, 2014, at 19:17 , Gerriet M. Denkmann gerr...@mdenkmann.de wrote:
But does global variable means var?
Jean-Daniel rightly says: I think that it should be 'let' and not 'var',
and you don't want the pointer to be changed after initialization
I know nothing about the real answer,
On Aug 13, 2014, at 11:31 , Luc Van Bogaert luc.van.boga...@me.com wrote:
My question now is , where I should remove MyView as an observer with
'self.model removeObserver: self forKey: @property...' '?
I tried to do this in 'dealloc', but it seems that from time to time my model
object is
1001 - 1100 of 3195 matches
Mail list logo