So the problem I was having with my googling was that I was trying alert, popup
and dialog - not sheet ;o)
On 19 Dec 2009, at 18:41, Ken Thomases wrote:
> On Dec 19, 2009, at 12:37 AM, Michael Davey wrote:
>
>> Sorry for the really noob posting, but I am currently using the NSAlert
>> class to
Thanks for the pointer!
On 19 Dec 2009, at 18:37, David A. Lyons wrote:
> Here's a recipe I discovered recently: Consult the Apple Human Interface
> Guidelines PDF [1], which sometimes has an "Implementation" section that
> tells you what classes, APIs, or constants to use.
>
> In this case,
On Dec 19, 2009, at 12:37 AM, Michael Davey wrote:
Sorry for the really noob posting, but I am currently using the
NSAlert class to display alerts in my application, but what I would
rather do is display one of the alert boxes that slide out of the
title bar, as with the installer, firefox
On 2009 Dec 18, at 21:34, Gerriet M. Denkmann wrote:
> I added in MyDocument.m:
>
> - (IBAction)add: sender;
> {
> [ [ self undoManager ] setActionName: @"Add" ];
> [ dictWordArrayController add: sender ];
> }
>
> and now got two Undo items:
I presume you mean that you can click U
Hi,
I am experiencing a weird problem with my GC (if this is relevant) application
when trying to re-display windows that are in the main xib file. More
specifically, when I try to launch the preferences panel for the second time it
hangs the window with even the close button disabled. Is ther
Hi,
Sorry for the really noob posting, but I am currently using the NSAlert class
to display alerts in my application, but what I would rather do is display one
of the alert boxes that slide out of the title bar, as with the installer,
firefox and a slew of other applications. Does anyone know
On 19 Dec 2009, at 11:39, Graham Cox wrote:
>
> On 19/12/2009, at 12:08 PM, Gerriet M. Denkmann wrote:
>
>> How would I do this?
>> Subclass the NSArrayControllers and overrriding add: and remove: to call
>> setActionName:?
>> Or is there a simpler way?
>
>
> My take on this is this: The act
On 19/12/2009, at 3:32 AM, Sandro Noël wrote:
> I do not have access to the window instance.
> How do i get to the window?
>
Yes you do - all views have a -window property that returns it.
--Graham
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple
On 19/12/2009, at 5:09 AM, Jerry Krinock wrote:
> I would be SOO HAPPY if Apple would just somehow let me have a teeny-tiny
> peek at the Undo Stack -- if only for debugging purposes. We don't even get
> a -count :(
Yep, just the ability to peek at what's actually on the stacks is very he
On 19/12/2009, at 12:08 PM, Gerriet M. Denkmann wrote:
> How would I do this?
> Subclass the NSArrayControllers and overrriding add: and remove: to call
> setActionName:?
> Or is there a simpler way?
My take on this is this: The action name is part of the View layer (because it
appears in the
Sandro Noël wrote:
Well for instance if I try to rename the music folder in my
personal home folder using Finder
The system/finder will not let me do that because the folder is
needed by the system.
Testing this in Terminal:
mv ~/Music ~/lose
I get a Permission denied error message, whi
Can I do exactly what I'm doing there in that? I also need to place some text
in there which I have in the full code, just made my code shorter as an
example.
On Dec 18, 2009, at 8:07 PM, Julien Jalon wrote:
> NSImage needs a connection to the Window Server in Leopard.
>
> If you want to do s
NSImage needs a connection to the Window Server in Leopard.
If you want to do some offscreen headless rendering, use CoreGraphics +
ImageIO
On Sat, Dec 19, 2009 at 2:21 AM, Mr. Gecko wrote:
> Ok, so I've done some more research and found this
> http://developer.apple.com/mac/library/technotes/t
On 2009-12-18, at 3:25 PM, Greg Guerin wrote:
> Sandro Noël wrote:
>
>> it does not work, even if i select the root folder of my hard drive i still
>> get the permission to rename it.
>
>
> What effective user id is it running as? What groups is that user id a
> member of?
>
> Run this Term
I have a subclass of NSPersistentDocument. MyDocument.nib has two NSTableViews
bound to NSArrayControllers and some + and - buttons connected to add: resp.
remove: of these controllers.
The table view are editable.
And, without doing anything about it, everything is undoable. Very impressive.
B
Ok, so I've done some more research and found this
http://developer.apple.com/mac/library/technotes/tn2005/tn2083.html#SECPRELOGINANDTRUST,
it basically says to run it in the loginwindow, but I can't do that with
apache which is what I'm running my code with. Because this is a personal
applicat
A couple more things I've thought of:
- There is such a thing as a grayscale image that uses floats instead of
bytes for values. You may not even need to do a conversion.
- You may even be able to wrap your buffer up in an image rep without
copying it.
I don't use NSImage; my custom image views
On Fri, Dec 18, 2009 at 3:15 PM, PCWiz wrote:
> Thanks, that's helpful to know.
>
> Kai, I am developing on Snow Leopard but I'm using the 10.5 SDK, so is it
> possible that NSRecursiveLock is being used in NSOperationQueue? Or should I
> set a breakpoint on [NSRecursiveLock alloc] to see where
> That's correct, and that's how it should work. It works here in a test app.
> Are you doing anything "unusual" in your NSWindowController? What methods are
> you overriding?
My bad. After getting your email I kept dug around a bit more, and I discovered
I had not connected the NSWindowControl
Thanks, that's helpful to know.
Kai, I am developing on Snow Leopard but I'm using the 10.5 SDK, so is it
possible that NSRecursiveLock is being used in NSOperationQueue? Or should I
set a breakpoint on [NSRecursiveLock alloc] to see where its being allocated?
Independent Cocoa Developer, Macat
On 19/12/2009, at 6:50 AM, Todd Heberlein wrote:
> I have a document-based app. For each document there can be a couple of
> satellite windows brought up for specific views of some of the data. Each of
> these satellite windows is controlled by an NSWindowController subclass
> loaded by MyDocu
Thanks Ross.
I have done some more research and found that the complete mapping dictionary
is stored in
/System/Library/Frameworks/AppKit.framework/Resources/StandardKeyBinding.dict,
and that it defines a whole lot of other key mappings that are mapped to the
noop: selector, for instance Comm
I have a document-based app. For each document there can be a couple of
satellite windows brought up for specific views of some of the data. Each of
these satellite windows is controlled by an NSWindowController subclass loaded
by MyDocument and added via addWindowController:. A menu item's tar
On 12/18/09 12:13 PM, Quincey Morris said:
>Some people use globally unique strings for the context. I tend to use
>the class:
>
> [addObserver: ... forKeyPath: ... options: ... context: [MyClass
> class]];
I suppose that usage is safe, but in general it's dangerous to use an
Obj-C object
On Dec 18, 2009, at 2:56 PM, Kyle Sluder wrote:
On Fri, Dec 18, 2009 at 11:48 AM, Paul Bruneau
wrote:
Ugh, so I guess you are saying that derived properties are not
trustworthy
in this usage?
No, just that if you don't actually change the value, KVO might not
bother notifying listeners. T
Sandro Noël wrote:
it does not work, even if i select the root folder of my hard drive
i still get the permission to rename it.
What effective user id is it running as? What groups is that user id
a member of?
Run this Terminal command to identify the user: id -p
Run this Terminal comm
This post describes how to dump the NSUndoManager stacks. I found it helpful
when debugging undo manager crashes.
http://parmanoir.com/Inspecting_NSUndoManager's_undo_stack
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post adm
On Dec 18, 2009, at 11:18, Paul Bruneau wrote:
>> 2. Your observer method is stripped down, right? You are really using a
>> unique value for the context parameter, right? It's not really safe to just
>> not care.
>
> No, I'm not using context. My feeling was that since I am checking for the
>
Thanks Jens,
I thought it was something like that.
On Dec 18, 2009, at 9:21 AM, Jens Alfke wrote:
>
> On Dec 18, 2009, at 7:37 AM, Michael de Haan wrote:
>
>> So, why would one not simply use an NSMutableArray and simple add or delete
>> model objects. I suspect part of the answer is that ass
On Dec 18, 2009, at 11:28, Kyle Sluder wrote:
> Please note that it is not correct to call -will/didChangeValueForKey:
> without actually changing the value. The KVO mechanism might just
> simply not send a notification at all. (Well, I guess it's valid, but
> you might see fewer observation notif
On Fri, Dec 18, 2009 at 11:48 AM, Paul Bruneau
wrote:
> Ugh, so I guess you are saying that derived properties are not trustworthy
> in this usage?
No, just that if you don't actually change the value, KVO might not
bother notifying listeners. The actual values are fine, just wanted to
address th
On Dec 18, 2009, at 2:28 PM, Kyle Sluder wrote:
On Fri, Dec 18, 2009 at 11:18 AM, Paul Bruneau
wrote:
if ([keyPath isEqualToString:kOverallWidth]) {
[self willChangeValueForKey:@"overallWidth"];
NSLog(@"got notification that overallwidth
On Dec 18, 2009, at 12:27 PM, jon klein wrote:
simple approach is to code each object in the scene with a unique
color, render the scene with all lighting, blending, etc turned off,
then readback the single pixel at the desired coordinates. For the
unique colors, you can just increment an inte
On Fri, Dec 18, 2009 at 11:18 AM, Paul Bruneau
wrote:
>> if ([keyPath isEqualToString:kOverallWidth]) {
>> [self willChangeValueForKey:@"overallWidth"];
>> NSLog(@"got notification that overallwidth changed:
>> %@", object);
>>
On Dec 18, 2009, at 2:08 PM, Quincey Morris wrote:
This is a situation where you use willChangeValueForKey:/
didChangeValueForKey:
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:
(id)object change:(NSDictionary *)change context:(void *)context
{
if ([keyPath
On Dec 18, 2009, at 10:20, Paul Bruneau wrote:
> I am setting up the object that holds the dependent value as an observer of
> the individual members of the collection like this:
>
> [theFrameModule addObserver:self forKeyPath:kOverallWidth
> options:NSKeyValueObservingOptionNew context:NULL];
On Dec 17, 2009, at 12:16 AM, Gideon King wrote:
> I have a custom view that implements the NSTextInputClient protocol, and it
> successfully receives doCommandBySelector: method calls for just about every
> other non-text entry key combination, but Command+Option+Return just doesn't
> get there
On 2009-12-18, at 1:11 PM, Sandro Noël wrote:
> On 2009-12-18, at 12:25 PM, Jens Alfke wrote:
>
>>
>> On Dec 18, 2009, at 6:12 AM, Sandro Noël wrote:
>>
>>> there are some system protected folders that will not allow themselves to
>>> be renamed.
>>> I would like to disable the possibility of
I would like to know the correct way to implement a non-stored value
that is dependent on members of a collection.
I am setting up the object that holds the dependent value as an
observer of the individual members of the collection like this:
[theFrameModule addObserver:self forKeyPath:kOve
On 2009-12-18, at 12:25 PM, Jens Alfke wrote:
>
> On Dec 18, 2009, at 6:12 AM, Sandro Noël wrote:
>
>> there are some system protected folders that will not allow themselves to be
>> renamed.
>> I would like to disable the possibility of even starting to edit there names
>> in my interface.
>>
On 2009 Dec 17, at 04:29, Graham Cox wrote:
> [speaking of NSUndoManager] It's also a black box with a large private API
> and internal structure unpublished, undocumented and difficult to override or
> figure out what's happening when it's not co-operating.
I would be SOO HAPPY if Apple w
Martin,
Have you looked at the API for CGImage? If not, this may be helpful as well.
regards,
douglas
On Dec 17, 2009, at 9:25 AM, Martin Beroiz wrote:
>
> On Dec 17, 2009, at 6:17 AM, Graham Cox wrote:
>
>>
>> On 17/12/2009, at 5:32 AM, Martin Beroiz wrote:
>>
>>> Can anyone please give
Travis,
Using Core Video in it's rawest form might be a little bit of overkill for this
problem (IMHO). Have you tried using a collection of QTMovieLayers and QTMovie
objects in a layer-hosted view?
regards,
douglas
On Dec 16, 2009, at 7:43 PM, Travis Kirton wrote:
> Hi,
>
> I'm planning a
So i tried one of the suggestions, which was to add a new menu item
(as opposed to using the default one). When I did this, they BOTH
started to work.
I can't explain what happened. Of course, I would swear that I was
doing things right, but... It may have been pure user error, or IB
migh
On Dec 18, 2009, at 6:12 AM, Sandro Noël wrote:
> there are some system protected folders that will not allow themselves to be
> renamed.
> I would like to disable the possibility of even starting to edit there names
> in my interface.
> I would need a function that can tell me if the folder I'
On Dec 18, 2009, at 7:37 AM, Michael de Haan wrote:
> So, why would one not simply use an NSMutableArray and simple add or delete
> model objects. I suspect part of the answer is that assigning a new array
> allows easier use of KVC but I am not sure as this is not specifically
> explained.
On Dec 18, 2009, at 7:52 AM, Doug Knowles wrote:
> It's been my experience that validateUserInterfaceItem: is only called for
> toolbar items; there may be other cases, but I haven't run across them, and
> I've never seen it called on menu items.
No, that's not true; it's called for menu items a
On Dec 17, 2009, at 6:26 PM, PCWiz wrote:
> But I'm happy to say that I eventually found the cause of my problem. One of
> the frameworks I was using was compiled using "i386 ppc" set as the
> architecture. Setting this to "Standard (32-bit/64-bit Universal)" and
> recompiling the framework fix
On Dec 18, 2009, at 7:32 AM, glenn andreas wrote:
> 2) Subclass UIApplication and override sendEvent: - this can get ugly from an
> architecture point of view (since you no longer have a nice little reusable
> view - you've got to do major surgery on the application itself), and
> sendEvent: do
> Playing QT content on a background thread is error prone, complex and poorly
> supported.
Thanks, I was afraid it would sum up to that. I'll settle with the way
things are for the moment, pretty decent.
F.
On Fri, Dec 18, 2009 at 5:23 PM, Jean-Daniel Dupas
wrote:
>
> Le 18 déc. 2009 à 17:10,
On Thu, Dec 17, 2009 at 10:59 PM, Arun wrote:
> Hi All,
>
> Is it possible to launch login items in root context?
Words to search for...
launchd / launchctl / launch daemon
http://developer.apple.com/mac/library/technotes/tn2005/tn2083.html
Also if you can focus on Snow Leopard and later check
The esc Key is trapped like this inside the View controller that is loaded
inside the window.
-(BOOL)control:(NSControl *)control textView:(NSTextView *)textView
doCommandBySelector:(SEL)command
{
if (command == @selector(cancelOperation:)) {
NSLog(@"escape key has been
Le 18 déc. 2009 à 17:10, slasktrattena...@gmail.com a écrit :
> Hi all,
>
> QTKit docs say that Quicktime playback is designed to work without
> interruption on the main thread. This works fairly well, most of the
> time, but I notice occasional glitches in the playback when the
> computer is bu
Hi,
I'm trying to localize a project for the first time. I'm setting up a fresh
environment with AppleGlot, copying the .string's and .xib's into the
environments _NewBase directory, and initiating AppleGlot's initial pass on
the environment.
AppleGlot lists the .xib files in its progress message
Hi all,
QTKit docs say that Quicktime playback is designed to work without
interruption on the main thread. This works fairly well, most of the
time, but I notice occasional glitches in the playback when the
computer is busy, especially when loading web content or reading files
(regardless of what
On 18/12/2009 Graham Cox wrote:
There is an easy solution - do it in your window controller.
Could you please extend this anwer? I have two window controllers - the main
window (AppController) where I have a button, opening a popup panel, and
this popup panel controller. What controller do y
Hi, Jim,
Try implementing validateMenuItem: instead.
It's been my experience that validateUserInterfaceItem: is only called for
toolbar items; there may be other cases, but I haven't run across them, and
I've never seen it called on menu items.
When I do use validateUserInterfaceItem: (for butto
In Cocoa Design Patterns, Chap 29 re-creates, from scratch, an
NSArrayController, dissecting in great detail how it works. The example
essentially is a very rudimentary drawing program, which shows rectangles in a
view, with a table showing the coordinates of the same.
My question relates to th
On 18.12.2009, at 15:54, PCWiz wrote:
> Yeah I definitely need to squash this bug. But as Greg Parker said,
> @synchronized (which I'm using) has nothing to do with NSRecursiveLock. And
> the only other threading related classes I'm using are NSOperationQueue and
> NSInvocationOperation. Would
On Dec 18, 2009, at 6:00 AM, Sam Krishna wrote:
> Hi all,
>
> So, I'm working on a client project where he wants to have ActionOne for
> flicks on the UIPickerView and ActionTwo for non-flick selections.
>
> When I subclass UIPIckerView, I explicitly follow the pattern of overriding
> one of
hey mike
the final thought put me on to an easy solution, thanks. i just stopped the
controller automaticallly rearranging the content, then called
[arrayController rearrangeContent] after a batch of search results has
arrived. it still is quite heavy on the processor, but the results arrive in
a
On 18 Dec 2009, at 21:52, Dave Keck wrote:
>
> Why not use NSKeyedArchiver?
Because it can handle only certain strings?
Because it creates significanly bigger files?
Kind regards,
Gerriet.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Yeah I definitely need to squash this bug. But as Greg Parker said,
@synchronized (which I'm using) has nothing to do with NSRecursiveLock. And the
only other threading related classes I'm using are NSOperationQueue and
NSInvocationOperation. Would one of these classes use NSRecursiveLock? I am
On 19/12/2009, at 1:35 AM, Sandro Noël wrote:
> But how do I actually cancel the editing operation?
Just make the outline view itself first responder. This will validate and
resign the text field if it's OK.
[[outlineView window] makeFirstResponder:outlineView];
--Graham
___
Hello
In an outline View, listing the content of a directory with a custom Image/Text
cell
I would want to react to the "ESC" key press to cancel the current editing
operation.
Using my OutlineView Controller Delegate I can receive the notification that
NSResponder's cancelOperation(esc) has b
Hello
In an OutlineView, listing the content of the hard drive.
there are some system protected folders that will not allow themselves to be
renamed.
I would like to disable the possibility of even starting to edit there names in
my interface.
I would need a function that can tell me if the fol
On Dec 18, 2009, at 6:33 AM, Dave Keck wrote:
Why not use NSKeyedArchiver?
It is extremely straight forward to archive certain non-object data
types using NSArchiver and have it interoperate with Core Data and
Cocoa bindings. It is extremely cumbersome to do otherwise. Elegant
versus mes
hi-
On Dec 18, 2009, at 8:30 AM, Richard Somers wrote:
> In the class reference and header file for NSArchiver and NSUnarchiver there
> is not a single mention of depreciation for these two classes. The only place
> that discusses depreciation is in the Archives and Serializations Programming
On 19/12/2009, at 12:30 AM, Richard Somers wrote:
> How safe is it to use NSArchiver in a project?
I'd say it's safe, because it will be needed for older file formats that can
only be read by dearchiving using NSUnarchiver. It's not deprecated, it's just
hat newer code is better off using NSK
On 19/12/2009, at 12:14 AM, Kevin Walzer wrote:
> I am trying add a subview to an NSView programatically, and am having some
> difficulty.
>
> Here's my code:
> DNDView *dropview = [[DNDView alloc] init];
This is wrong. The designated initializer for NSView is -initWithFrame:
> NSView *vie
Why not use NSKeyedArchiver?
___
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 cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscrip
In the class reference and header file for NSArchiver and NSUnarchiver
there is not a single mention of depreciation for these two classes.
The only place that discusses depreciation is in the Archives and
Serializations Programming Guide for Cocoa.
It would appear that there are still legi
I am trying add a subview to an NSView programatically, and am having
some difficulty.
Here's my code:
DNDView *dropview = [[DNDView alloc] init];
NSView *view;
if ([dropview superview] != view) {
[view addSubview:dropview positioned:NSWindowBelow relativeTo:nil];
}
NSRect frame = [
On 18/12/2009, at 10:12 PM, Alexander Bokovikov wrote:
> I'd like to launch some process (no matter what exactly, it will work in
> different thread) as soon this popup panel will appear on screen. Of course,
> I could launch this process from within the same click handler above, but I
> beli
Hi all,
So, I'm working on a client project where he wants to have ActionOne for flicks
on the UIPickerView and ActionTwo for non-flick selections.
When I subclass UIPIckerView, I explicitly follow the pattern of overriding one
of the standard methods for doing this kind of thing, and has worke
Hi, All,
I'm rather new in Cocoa development, so I have some misunderstanding after
API manuals reading. In particular I have a popup panel, opened by a button
click in the main window:
- (IBAction) btnClick:(id)sender {
[popupPanel showWindow];
}
I'd like to launch some process (no matter
thanks for reply.
its working fine And one more Question is
i want to launch my application at startup, is there any option or
any script is there.
Regarde,
kiran.
On Dec 18, 2009, at 9:33 AM, Daniel Brieck Jr. wrote:
Kiran,
Why do you want the window minimized? Why not set it hidden an
As a follow-up to my own post 2 days ago:
When in a document based app I bind the value of an NSTextField (or
NSSearchField) in MyDocument.nib to File's Owner someString then I get the
unwanted behaviour of the document getting marked as dirty (documentEdited)
whenever I type in this NSTextFiel
> Ouch. But Tiger apps have toolbars too - do I have to "hand-build" them
> there?
Actually, don't answer this. Google knew.
--Sander
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to
> In Interface Builder, you have to set "deployment target" to 10.4 too for
> each xib/nib file.
>
> Use the menu "Window > Document Info" to do that.
Ah ha! Thanks, I was looking under a "save as" or something like that.
> Note: Toolbar are not supported for 10.4 nib.
Ouch. But Tiger apps h
Le 18 déc. 2009 à 10:48, Sander Stoks a écrit :
> Hello all,
>
> I am developing an app on my 10.6 machine but try to keep compatibility with
> 10.4. The binary itself is OK - I can select 10.4 as a target and build a
> working universal binary. However, I seem to have introduced a problem i
Hello all,
I am developing an app on my 10.6 machine but try to keep compatibility with
10.4. The binary itself is OK - I can select 10.4 as a target and build a
working universal binary. However, I seem to have introduced a problem in the
nib file. When testing on 10.4, I started getting "[
82 matches
Mail list logo