Hi,
I have a OutputBinsPDE sample and I added a button and a panel to it. I'd
like now to open that panel when I click on the button. The problem is that
every time the panel appears under the print dialog and I have no focus on
it and I can't click on it. I tried with [panel orderFront:self],
[pa
Actually, the most of functionality provided by the UITextField method is
better implemented by a formatter subclass with NSTextField.
Aki Inoue
On 2011/09/21, at 19:49, Jens Alfke wrote:
>
> On Sep 21, 2011, at 7:42 PM, Eric Wing wrote:
>
>> I have been using the delegate callback
>> text
I think we’d need to see the actual code (or sections directly copied from it)
to tell what’s going wrong.
For example, the class declaration you provided wouldn’t work because Setup()
isn’t declared as public, but I assume that’s just because you just typed in a
couple of lines from it.
—Jens_
I forgot to send this to the list.
Begin forwarded message:
> From: koko
> Date: September 21, 2011 8:50:29 PM MDT
> To: Jens Alfke
> Subject: Re: Passing NSPrintOperation* to CPP Function
>
>
> On Sep 21, 2011, at 8:45 PM, Jens Alfke wrote:
>
>>
>> On Sep 21, 2011, at 7:34 PM, koko wrote
On Sep 21, 2011, at 7:42 PM, Eric Wing wrote:
> I have been using the delegate callback
> textField:shouldChangeCharactersInRange:replacementString for
> UITextField.
> I am trying to port code over to Mac using NSTextField. Is there
> something that provides similar functionality?
Yes, but it’s
On Sep 21, 2011, at 7:34 PM, koko wrote:
> class BPrinter
> {
> void Setup(NSPrintOperation* pOperation);
> };
How did you declare NSPrintOperation in this header?
> in my .cpp file (compiled as cpp.objcpp)
>
> void BPrinter::Setup(NSPrintOperation pOperation)
You mean NSPrintOperat
I have been using the delegate callback
textField:shouldChangeCharactersInRange:replacementString for
UITextField.
I am trying to port code over to Mac using NSTextField. Is there
something that provides similar functionality?
Thanks,
Eric
--
Beginning iPhone Games Development
http://playcontro
I am trying to write a CPP function that takes an NSOperation* as a parameter
but am going around in circles.
Specifically:
In my cpp .h file
class BPrinter
{
voidSetup(NSPrintOperation* pOperation);
};
in my .cpp file (compiled as cpp.objcpp)
void BPrinter::Setup(NSPrintOperatio
On Wed, Sep 21, 2011 at 10:59 PM, koko wrote:
> FRSystemProfile is very nice ... I am unfamiliar, is it free?
As Conrad already said: It's under Apache license - so feel free to
use it. No strings attached.
cheers,
Torsten
___
Cocoa-dev mailing list (
Just like Xcode's scheme management I have some display in the toolbar
and would like to popup a menu on click. So I create a NSToolbarItem
and set a custom view. But now the view also receives the clicks and
so the action set on the item is not getting triggered on a click.
NSToolbarItem
I'm thoroughly confused about how to control document opening in Lion.
My app can optionally show a dialog at startup instead of opening a new
'untitled' document. The dialog displays templates, in the same manner as
Pages, etc. When this dialog is shown, as controlled by a user default, I need
On Wed, Sep 21, 2011 at 3:09 PM, Conrad Shultz
wrote:
> What are some examples of breakage happening under this scenario? I'd
> like to be on the lookout myself if I indeed did put too much faith in
> the documentation.
QLPreviewPanel comes to mind.
--Kyle Sluder
___
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 9/21/11 2:22 PM, Charles Srstka wrote:
> Why not? I find it to be safer than checking for the existence of
> a method, because you never know if that method might have actually
> have existed before it went public, but in a less stable form or
> wit
On Wed, Sep 21, 2011 at 2:22 PM, Charles Srstka
wrote:
> Why not? I find it to be safer than checking for the existence of a method,
> because you never know if that method might have actually have existed before
> it went public, but in a less stable form or with different behavior. If this
>
On Sep 21, 2011, at 4:34 PM, Nick wrote:
> Should I store this information in some HFS's 'file fork'? Or is it better
> to create a "shadow file" for every document that keeps this metainformation
> (wouldn't like to do so, i keep that as the last resort).
As I recall TextWrangler/BBEdit are able
On Sep 21, 2011, at 13:34 , Nick wrote:
> I am trying to implement some kind of "memory" for the documents in my
> application. For example, each document window has a position on the
> screen. So I'd like to see this position next time the user opens this saved
> document.
This is normally and
On Sep 21, 2011, at 4:09 PM, Conrad Shultz wrote:
> And regarding my earlier query: I agree, this sounds like a reasonable
> place to use version numbers. I just wanted to make sure you weren't
> trying to do something like determine whether a certain framework is
> available by looking at the OS
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 9/21/11 1:59 PM, koko wrote:
> FRSystemProfile is very nice ... I am unfamiliar, is it free?
>
It's under the Apache license... in general, start at the top of a
file's comments when looking for license info.
And regarding my earlier query: I agr
FRSystemProfile is very nice ... I am unfamiliar, is it free?
-koko
On Sep 21, 2011, at 2:47 PM, Torsten Curdt wrote:
> Maybe this is of help
>
> https://github.com/tcurdt/feedbackreporter/blob/master/Sources/Main/FRSystemProfile.m
>
> cheers,
> Torsten
>
__
On Sep 21, 2011, at 13:50 , Leonardo wrote:
> I have a source file with NSFileModificationDate 2011-09-21 20:12:29 +
> I copy this date to the destination file and I get 2011-09-21 20:12:28 +
> So, one second earlier. This happens only on a FAT16 USB-key volume.
FAT16 volumes store date/t
> UIKit takes a snapshot of the view hierarchy as it was when your application
> goes into the background and uses that when it comes back to the foreground.
> It remains until your UI has had a chance to redraw itself.
Thanks, David. I suspected as much. Looks like there's nothing to be
done
I have a source file with NSFileModificationDate 2011-09-21 20:12:29 +
I copy this date to the destination file and I get 2011-09-21 20:12:28 +
So, one second earlier. This happens only on a FAT16 USB-key volume. If I do
that on a file on a MacOSX volume I get the same date. Correct. I do:
Maybe this is of help
https://github.com/tcurdt/feedbackreporter/blob/master/Sources/Main/FRSystemProfile.m
cheers,
Torsten
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Con
Hello
I am trying to implement some kind of "memory" for the documents in my
application. For example, each document window has a position on the
screen. So I'd like to see this position next time the user opens this saved
document.
I can't save this info in the document file itself, as documents
On Sep 21, 2011, at 13:25 , Richard Somers wrote:
> Results of Xcode 4.1 symbolic breakpoint testing.
>
> lldb will not break on any Apple supplied library symbols.
>
> gdb will break on some Apple supplied library symbols but not all.
>
> [NSObject alloc]Yes
>
> [NSUndoManager all
On Sep 21, 2011, at 1:49 PM, Quincey Morris wrote:
>> I made a brand new project in Xcode 4.1 and got the same results as before.
>> gdb crashes when just using a method name like 'keyDown:' for the symbolic
>> breakpoint. It would appear that this has been fixed in Xcode 4.2. Also you
>> have
On Wed, 21 Sep 2011 13:45:38 -0600, koko said:
>When a user buys we ask for a registration on first run. We like to get
>the OS name and version number from their system to include in out reg
>database.
I think that's a reasonable use of Gestalt().
>I just want to be sure that using Gestalt wil
On Sep 21, 2011, at 12:40 , Richard Somers wrote:
> I made a brand new project in Xcode 4.1 and got the same results as before.
> gdb crashes when just using a method name like 'keyDown:' for the symbolic
> breakpoint. It would appear that this has been fixed in Xcode 4.2. Also you
> have accur
When a user buys we ask for a registration on first run. We like to get the OS
name and version number from their system to include in out reg database.
I just want to be sure that using Gestalt will not break in the future or is
there a better way than that below to get the OS version.
- (voi
On Sep 21, 2011, at 12:10 PM, Quincey Morris wrote:
> I'm not seeing this behavior in gdb (with Xcode 4.2).
>
> In Xcode 3, if you tried to set a breakpoint on (say) 'keyDown:', Xcode would
> pop up a sheet listing all the different matching symbols (all the methods in
> the various classes whe
Can't find that sheet override. I've searched everything. Used text search
either.
Here's what I've found:
Basically (as I understand) this 'you have an unsaved document. Sure to
quit?' sheet is displayed from the
- (void)saveDocumentWithDelegate:(id)delegate
didSaveSelector:(SEL)didSaveSelector
c
On Sep 21, 2011, at 11:59 AM, Gavin Stokes wrote:
> When our app gets a notification that it's going into the background, it
> clears the tableview that serves as its primary UI element. However, when
> the app returns to the foreground, it still briefly contains the items that
> were supposed
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 9/21/11 12:26 PM, koko wrote:
> Is Gestalt(gestaltSystemVersion, &MacVersion) the wat toget OSX
> versions today and moving forward?
Can you elaborate on what you are trying to do? There are relatively
few scenarios, I would think, where getting
On Wed, 21 Sep 2011 13:26:32 -0600, koko said:
>Is Gestalt(gestaltSystemVersion, &MacVersion) the wat toget OSX versions
>today and moving forward?
No. Because it's BCD and breaks for values larger than 9. See Gestalt.h.
Instead, use:
SInt32 major = 0;
(void)Gestalt (gestaltS
Is Gestalt(gestaltSystemVersion, &MacVersion) the wat toget OSX versions today
and moving forward?
___
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
Yes TextEdit uses NSDocument, it has long been the NSDocument sample app
On Sep 21, 2011, at 1:41 PM, Jens Alfke wrote:
>
> On Sep 21, 2011, at 11:28 AM, Nick wrote:
>
>> do you know how did Apple developers make TextEdit display a custom sheet
>> for notifying that the document that's being c
Hi all.
When our app gets a notification that it's going into the background, it clears
the tableview that serves as its primary UI element. However, when the app
returns to the foreground, it still briefly contains the items that were
supposedly cleared. They remain there for a second after
On Sep 21, 2011, at 03:10 , Gerriet M. Denkmann wrote:
> I got from reading the documentation that UTIs are the modern way to go.
>
> NSAttributedString.h says "for reading, thNSFileTypeDocumentAttributes is
> available along with NSDocumentTypeDocumentAttribute, but for writing the two
> are m
On Sep 21, 2011, at 11:28 AM, Nick wrote:
> do you know how did Apple developers make TextEdit display a custom sheet for
> notifying that the document that's being closed needs to be saved? It doesn't
> look like an ordinary default NSDocument's "Do you want to save the changes
> you made in
Jens,
do you know how did Apple developers make TextEdit display a custom sheet
for notifying that the document that's being closed needs to be saved? It
doesn't look like an ordinary default NSDocument's "Do you want to save the
changes you made in the document. Your changes will be lost if you do
On Sep 21, 2011, at 9:43 AM, John Joyce wrote:
> Based on the screenshot, "Save as Plain Text"
> This function would probably be better suited as a preference at the app or
> document level.
Not necessarily; it’s pretty common to put this in the Save panel. For example,
both TextEdit and Prev
On Sep 21, 2011, at 09:29 , Richard Somers wrote:
> That works! So apparently the entire symbol including square brackets and the
> initial plus or minus indicating instance method versus class method is
> required for an Objective-C symbolic breakpoint.
>
> The Xcode 4 User Guide explicitly st
Hello
Is there a way to alternate default text of the sheet that appears when an
unsaved document is attempted to be closed?
"Do you want to save the changes you made in the document "
Is there a way to use custom sheets there?
thank you
___
Cocoa-dev ma
Hi folks,
I seem to recall that with GC, one is limited to some amount of 'collectable'
memory, but I can no longer find what that limit is. IIRC, it's like 30 GB?
My 64 bit-only, GC-only app is crashing when I use "lots" of memory.
I can repro in a test app with this pseudo code:
- IBAction
Based on the screenshot, "Save as Plain Text"
This function would probably be better suited as a preference at the app or
document level.
Another option would be adding an item to the File menu for Save as Plain Text.
There are a lot of options, but some would indeed involve moving toward a
cus
On Sep 21, 2011, at 9:43 AM, Jens Alfke wrote:
>> Is there a secret to getting symbolic breakpoints to work?
>> Set symbolic breakpoint 'keyDown:' (without the quotes) and nothing happens.
>
> The name has to be like “-[MyView keyDown:]”, otherwise it’s ambiguous which
> -keyDown: method you mea
On Sep 21, 2011, at 8:01 AM, Richard Somers wrote:
> Is there a secret to getting symbolic breakpoints to work?
> Set symbolic breakpoint 'keyDown:' (without the quotes) and nothing happens.
The name has to be like “-[MyView keyDown:]”, otherwise it’s ambiguous which
-keyDown: method you mean —
On Wed, Sep 21, 2011 at 3:41 AM, Nick wrote:
> Hello
> Is there a way to hide the border, that surrounds accessory view, added to
> the NSSavePanel (i'd like to have a custom checkbox in this save panel)? I
> managed to have this checkbox, but it added an ugly border that occupies the
> whole line
Is there a secret to getting symbolic breakpoints to work?
Set symbolic breakpoint 'keyDown:' (without the quotes) and nothing happens.
Set a breakpoint in the gutter and it works fine.
I am using Xcode 4.1 with the LLDB debugger. When I try to switch to the GDB
debugger Xcode crashes. The proj
thank you
2011/9/21 Graham Cox
> You *could* work back up the view hierarchy from your checkbox (likely you
> have an outlet to it in your accessory controller) until you find the NSBox
> then alter its settings so that it draws nothing. That might work.
>
> But I'd also just leave it alone, it'
You *could* work back up the view hierarchy from your checkbox (likely you have
an outlet to it in your accessory controller) until you find the NSBox then
alter its settings so that it draws nothing. That might work.
But I'd also just leave it alone, it's the user's cue that you have added some
On 2011 Sep 21, at 03:41, Nick wrote:
> http://rghost.net/22453441/image.png
The correct terminology for "ugly border" is that Cocoa has "embedded the
checkbox inside of an NSBox".
To get rid of it, you might have to spend a lot of time re-implementing
NSSavePanel. Particularly if your app s
Hello
Is there a way to hide the border, that surrounds accessory view, added to
the NSSavePanel (i'd like to have a custom checkbox in this save panel)? I
managed to have this checkbox, but it added an ugly border that occupies the
whole line in NSSavePanel.
An image of the problem is here:
http:
I have several files containing all the magic word "Krukudill" (a word not
widely used in polite circles).
The files are called:
Test Roman (encoding = Mac OS Roman)
Test 8 (Utf 8)
Test 16 (Utf 16)
Test.rtf
etc.
When I ask Spotlight about Krukudill, it shows me just one file: "Test Roman".
The
> Define "doesn't work" - if you mean observeValue:forKeyPath:... doesn't get
> called,
Indeed that's what I meant.
> it's because that's a different relationship from bindings.
Just assumptions (I know) but I would think the default implementation
does something similar to the code shown in th
I got from reading the documentation that UTIs are the modern way to go.
NSAttributedString.h says "for reading, thNSFileTypeDocumentAttributes is
available along with NSDocumentTypeDocumentAttribute, but for writing the two
are mutually exclusive"
So I decided to replace NSDocumentTypeDocument
56 matches
Mail list logo