I've made my first foray into multitasking with Cocoa and am experiencing a
little snag that I was hoping someone could help me with. I read the
Concurrency Programming Guide (it was in one sitting, so my eyes probably
glazed over a few times) and decided to try NSOperationQueue. First I queued
Thank you, Ken. Originally I started out by implementing the table view using a
data source and delegate. With some help from list members, I got that working
pretty well except for row height. I only started my latest test app using
NSArrayController and bindings because I mistakenly thought th
On Oct 9, 2014, at 7:40 AM, Charles Jenkins wrote:
> Thank you, Ken. Originally I started out by implementing the table view using
> a data source and delegate. With some help from list members, I got that
> working pretty well except for row height. I only started my latest test app
> using N
Good morning,
My document-based application can potentially display an app-modal dialog via
[NSApp runModalForWindow:] from within my override of [NSDocument
readFromURL:ofType:error:], in order to prompt the user for the password to
open a document. For the most part, this works just fine.
T
Well, I was imprecise. I didn’t literally mean the text view would directly
change the table view. Right now the text container and text view adjust
automatically to fit the text, but my code isn’t told about any changes, so I
have no opportunity to do anything to change the table view.
But o
You need to have the document content in order to test the password, right?
This might be naive, but could you load the document into an offstage memory
structure (meaning, don’t plug it into the user interface yet so the user
cannot see or modify it) and ask for the password only after the load
From the WWDC 2014 video 216: "targetViewControllerForAction works by looking
at the View Controller and seeing if it's _overwritten_ the action method that
you've passed in."
From Kyle Sluder's blog: "-targetViewControllerForAction:sender: ... will then
determine whether the instance’s method
On Oct 9, 2014, at 07:21 , Matthew LeRoy 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 idea. Although ‘rea
(typed in mail)
if ([[vc class] instanceMethodForSelector: selector] != [[vc superclass]
instanceMethodForSelector: selector]) {
// vc's class implements an instance method that is different from it's
superclass - i.e., it has overridden it
}
On Oct 9, 2014, at 11:56 AM, Matt Neuburg w
On Oct 9, 2014, at 10:03 AM, glenn andreas wrote:
> (typed in mail)
>
> if ([[vc class] instanceMethodForSelector: selector] != [[vc superclass]
> instanceMethodForSelector: selector]) {
> // vc's class implements an instance method that is different from it's
> superclass - i.e., it ha
On Oct 9, 2014, at 11:19 AM, Charles Jenkins wrote:
> Well, I was imprecise. I didn’t literally mean the text view would directly
> change the table view. Right now the text container and text view adjust
> automatically to fit the text, but my code isn’t told about any changes, so I
> have no
On 10/9/14, 1:00 PM, "Quincey Morris"
mailto:quinceymor...@rivergatesoftware.com>>
wrote:
On Oct 9, 2014, at 07:21 , Matthew LeRoy
mailto:mle...@minitab.com>> wrote:
My document-based application can potentially display an app-modal dialog via
[NSApp runModalForWindow:] from within my overrid
First check the docs for the CGImage APIs to see what their thread-safety is
like. I'm guessing you may need to create a new context for each different
thread you use them in. That's relevant because if the operation queue allows
operations to run in parallel, they're each effectively on a diffe
On Oct 9, 2014, at 12:33 , Matthew LeRoy 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, I’m
> not entire
Hi,
I have an iOS8 app that uses the native iOS WebRTC libraries and therefore must
be armv7 or armv7s (as they haven’t got an arm64 build). I’m using PushKit for
VoIP notifications and while this works great on 32 bit devices, when we move
to test it out on a 64bit device it crashes with this
On Thu, Oct 9, 2014, at 03:25 PM, Iain Holmes wrote:
> Hi,
>
> I have an iOS8 app that uses the native iOS WebRTC libraries and
> therefore must be armv7 or armv7s (as they haven’t got an arm64 build).
> I’m using PushKit for VoIP notifications and while this works great on 32
> bit devices, when
On 10/9/14, 4:06 PM, "Quincey Morris"
mailto:quinceymor...@rivergatesoftware.com>>
wrote:
On Oct 9, 2014, at 12:33 , Matthew LeRoy
mailto: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 o
On Thu, Oct 9, 2014, at 03:42 PM, Kyle Sluder wrote:
> The error seems pretty plain to me. The dylib doesn't contain a slice
> for your target hardware architecture. Are you building for only the
> active architecture (the ONLY_ACTIVE_ARCH build setting)? This is the
> default for debug builds.
B
On 9 Oct 2014, at 21:46, Kyle Sluder wrote:
> On Thu, Oct 9, 2014, at 03:42 PM, Kyle Sluder wrote:
>> The error seems pretty plain to me. The dylib doesn't contain a slice
>> for your target hardware architecture. Are you building for only the
>> active architecture (the ONLY_ACTIVE_ARCH build
On Oct 9, 2014, at 13:44 , Matthew LeRoy 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
somewhere, but I
On Oct 9, 2014, at 15:07:01, Jens Alfke wrote:
> First check the docs for the CGImage APIs to see what their thread-safety is
> like. I'm guessing you may need to create a new context for each different
> thread you use them in. That's relevant because if the operation queue allows
> operation
On Oct 9, 2014, at 2:54 PM, Steve Mills wrote:
>
> On Oct 9, 2014, at 15:07:01, Jens Alfke wrote:
>
>> First check the docs for the CGImage APIs to see what their thread-safety is
>> like. I'm guessing you may need to create a new context for each different
>> thread you use them in. That's
I wonder if anybody can tell me what I might be doing wrong. I used layout
constraints in InterfaceBuilder to define the layout for a UITableView
cell. The cell renders correctly, but I get a warning for each cell
displayed that contains a reference to a "FittingSizeHTarget" constraint
that I did n
Hello Leonardo,
You are correct that your dirty workaround is not very good, since it won't
handle many cases. Since the typesetter inserts a hyphen glyph into the glyph
stream whenever hyphenation occurs, perhaps you should check for the presence
of that glyph at the end of each line fragment
A correction:
> Another potential approach: you might subclass the typesetter and override
> -[NSTypesetter shouldBreakLineByHyphenatingBeforeCharacterAtIndex:] and
> record the instances where super returns YES.
I forgot that NSTypesetter itself does not actually implement this method, so
you
OS X 10.9
I need to scale an NSImage's dimensions to exactly 640x480 pixels before
sending it remotely for processing. If I use NSImage's -setSize:(NSSize)
method, it does set the size - temporarily. If I then try to serialize that
NSImage into an NSData for transfer, that resize information se
On Oct 9, 2014, at 9:08 PM, Carl Hoefs wrote:
> I need to scale an NSImage's dimensions to exactly 640x480 pixels before
> sending it remotely for processing.
> What is the correct way to do this?
Create an NSBitmapImageRep with the appropriate properties. Create an
NSGraphicsContext from th
I’m not sure I am having a hard time figuring this out and I am just not
finding anything via Google. I am writing a NSTextFieldCell subclass and I
want to recalculate the size whenever the string value changes via a binding.
What I can’t seem to figure out is how to observe the change. I cou
On Oct 9, 2014, at 17:25:05, Greg Parker wrote:
>
> This thread is stopped inside dispatch_once(), presumably waiting for some
> other thread to perform the once operation.
>
> Assuming dispatch_once is working normally, there should be one thread inside
> readMakerNoteProps() and dispatch_o
On Oct 9, 2014, at 10:56 PM, Randy Widell wrote:
> I’m not sure I am having a hard time figuring this out and I am just not
> finding anything via Google. I am writing a NSTextFieldCell subclass and I
> want to recalculate the size whenever the string value changes via a binding.
> What I ca
On 10 Oct 2014, at 1:08 pm, Carl Hoefs wrote:
> [oldImage setSize:NSMakeSize(640.0,480.0)];
The size of an NSImage is an abstract property that does not reflect the pixel
dimensions of the representations within it. This sounds a bit odd, until you
realise that images can have any resolutio
> On Oct 9, 2014, at 21:13, Ken Thomases wrote:
>
> On Oct 9, 2014, at 10:56 PM, Randy Widell wrote:
>
>> I’m not sure I am having a hard time figuring this out and I am just not
>> finding anything via Google. I am writing a NSTextFieldCell subclass and I
>> want to recalculate the size wh
On Oct 9, 2014, at 8:05 PM, Ken Thomases wrote:
> On Oct 9, 2014, at 9:08 PM, Carl Hoefs wrote:
>
>> I need to scale an NSImage's dimensions to exactly 640x480 pixels before
>> sending it remotely for processing.
>
>> What is the correct way to do this?
>
> Create an NSBitmapImageRep with t
On Oct 7, 2014, at 8:03 PM, Ken Thomases wrote:
> On Oct 7, 2014, at 5:29 PM, Daryle Walker wrote:
>
>> 1. Although the text in the window expands vertically as needed, it never
>> does horizontally. Wrapping always happens when lines are too long, but it
>> adjusts as the width of the window
On Oct 9, 2014, at 8:58 PM, Steve Mills wrote:
>
> On Oct 9, 2014, at 17:25:05, Greg Parker wrote:
>>
>> This thread is stopped inside dispatch_once(), presumably waiting for some
>> other thread to perform the once operation.
>>
>> Assuming dispatch_once is working normally, there should b
On Oct 9, 2014, at 11:57 PM, Carl Hoefs wrote:
> On Oct 9, 2014, at 8:05 PM, Ken Thomases wrote:
>
>> Create an NSBitmapImageRep with the appropriate properties. Create an
>> NSGraphicsContext from that bitmap image rep using +[NSGraphicsContext
>> graphicsContextWithBitmapImageRep:]. Make
I am trying a simple sample app on XPCServices, in which I am
following below steps:
Step 1: Created a sample project and added target - XPCServices with
name - HelperProcess to it. When the target is created XCode
automatically generates below files:
1. HelperProcessProtocol.h
2. HelperProcess
On Oct 10, 2014, at 12:02 AM, Daryle Walker wrote:
> On Oct 7, 2014, at 8:03 PM, Ken Thomases wrote:
>
>> On Oct 7, 2014, at 5:29 PM, Daryle Walker wrote:
>>
>>> 1. Although the text in the window expands vertically as needed, it never
>>> does horizontally. Wrapping always happens when line
38 matches
Mail list logo