On Dec 4, 2010, at 7:55 PM, Ken Thomases wrote:
On Dec 4, 2010, at 12:42 PM, Iceberg-Dev wrote:
By "hyphen", does the documentation actually mean a minus glyph
(like the one on the numeric keypad) or really the hyphen
typographic glyph?
If the former, why not just write min
According to the documentation here:
http://developer.apple.com/library/mac/#documentation/General/
Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html%23//
apple_ref/doc/uid/TP40009249-102070-TPXREF105
a CFBundleIdentifier value can accept alphanumeric, period and hyphen
chara
Le 27 oct. 10 à 02:09, Gregory Weston a écrit :
On Oct 26, 2010, at 16:29, Stephane Sudre wrote:
On Tue, Oct 26, 2010 at 4:14 AM, Gregory Weston
wrote:
Iceberg-Dev wrote:
When working with NSBitmapImageRep, calling -bitmapData is a
signal
that you may be editing the data. It is not
On Oct 23, 2010, at 2:41 AM, Ken Ferry wrote:
On Oct 22, 2010, at 4:07 PM, Iceberg-Dev
wrote:
On Oct 22, 2010, at 12:48 AM, Iceberg-Dev wrote:
I'm currently playing with a screen saver.
Problem:
It draws correctly in fullscreen mode or in SaverLab but does not
i
On Oct 22, 2010, at 12:48 AM, Iceberg-Dev wrote:
I'm currently playing with a screen saver.
Problem:
It draws correctly in fullscreen mode or in SaverLab but does not
in the preview mode of the 'Desktop & Screen Saver' pane of the
System Preferences.
Basic
I'm currently playing with a screen saver.
Problem:
It draws correctly in fullscreen mode or in SaverLab but does not in
the preview mode of the 'Desktop & Screen Saver' pane of the System
Preferences.
Basically, in #fail mode, it draws the first frame and then does not
refresh.
On Sep 2, 2010, at 5:28 AM, John C. Randolph wrote:
On Sep 1, 2010, at 8:15 PM, Eric E. Dolecki wrote:
Top left, the traffic lights have been turned to the vertical. Is
this
something new or was this easy to do before? Is it just a custom
implementation, or?
It's pretty easy to implement
As far as I can tell, when LSUIElement is set to 1,
applicationShouldTerminate: is not called when a Cocoa application
receive a terminate request.
Is there a way in this case to prevent the application from being
terminated by friend terminate requests (SIGTERM would be accepted)?
Mac O
On Feb 28, 2010, at 12:35 AM, Steven Degutis wrote:
Firstly, you do not need to check if tAnimation is nil, since
sending a message to nil is valid in ObjC. So I would personally
remove that if() and just de-indent all the code that's inside it.
Actually, in the real implementation there's
[Q] Is there a known bug in NSViewAnimation on Mac OS X 10.4 when it
comes to Distributed Notifications?
Scenario:
-
If I animate a window resizing through a NSViewAnimation, some
Distributed Notifications are only taken into account after I click
in the window resized through a NS
On Jan 27, 2010, at 3:05 PM, lorenzo7...@gmail.com wrote:
[...]
Of course, sorry. Instead of the localization value, I get the
localization key instead, which is an English string.
Here's a list of things to check:
- Check that there's no missing ';'
- Check that you do not have "key" ="
On Dec 27, 2009, at 11:48 PM, Graham Cox wrote:
On 28/12/2009, at 9:40 AM, Iceberg-Dev wrote:
Problem: what if you need to access the contextual info from the
panel:shouldShowFilename: method?
I haven't found a method to access the contextual information in
NSSavePanel, NS
[Case]
You display an Open Panel with the method:
- [NSOpenPanel
beginSheetForDirectory:file:types:modalForWindow:modalDelegate:didEndSel
ector:contextInfo:];
and you set a delegate for the panel so that you can filter out some
files with the delegate method - (BOOL) panel:(id)sender
sh
On Dec 23, 2009, at 10:58 PM, Dave DeLong wrote:
In many apps, you can hold down the option key to change the cursor
into a crosshair, and do a vertical selection. In addition, in
apps like Pages, you can hold down the command key to do a non-
contiguous selection. I'd imagine that both o
What kind of event can trigger a non-linear selection to be replaced
by multiple strings in different ranges?
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the mo
On Oct 13, 2009, at 12:42 AM, Jim Correia wrote:
On Mon, Oct 12, 2009 at 6:36 PM, Iceberg-Dev
wrote:
From what I've found in the documentation, the UTI type of a file
can be retrieved using the
LaunchServices APIs. This requires to provide a FSRef.
Wouldn't there be an API I
From what I've found in the documentation, the UTI type of a file
can be retrieved using the LaunchServices APIs. This requires to
provide a FSRef.
Wouldn't there be an API I didn't see in Foundation that lets you
obtain the type without having to convert, at least, a NSURL to a FSRef?
I'
On Oct 6, 2009, at 1:29 AM, Jens Alfke wrote:
On Oct 5, 2009, at 3:12 PM, Iceberg-Dev wrote:
Is it the intended behavior that resizing an Alert Sheet in Mac OS
X 10.5.8 on a MacBook Pro produces a lot of blinking?
I have a custom alert sheet that can be resized and when I resize
it on a
Is it the intended behavior that resizing an Alert Sheet in Mac OS X
10.5.8 on a MacBook Pro produces a lot of blinking?
I have a custom alert sheet that can be resized and when I resize it
on a MacBook Pro (either 9400 or 9600 GPU), the resize operation
produces flicking.
I tried with s
I am currently busy re-inventing the wheel in the form a code editor.
I support Shift Left and Shift Right.
I would like to support Undo on Shift Left.
I'm wondering how this should be done as this operation modifies both
the selected range(s) and the text.
I searched the archives, the NS
Using - (void) textViewDidChangeSelection:(NSNotification *)
inNotification instead. Works fine.
On Sep 14, 2009, at 11:53 PM, Iceberg-Dev wrote:
I'm currently trying to match braces in a text editor and intend to
use selectionRangeForProposedRange:granularity: for that.
While I don&
I'm currently trying to match braces in a text editor and intend to
use selectionRangeForProposedRange:granularity: for that.
While I don't see any problem in finding the matching brace, I'm a
bit surprised by the way this method is called repeatedly.
So far, I don't see a good way to tell
On Aug 16, 2009, at 2:03 AM, Jerry Krinock wrote:
On 2009 Aug 15, at 12:51, Iceberg-Dev wrote:
When the drop is validated in the right window (type of item
accepted), I would like to either display a window above the right
window or change the right window content to give the user a list
Problem:
Let's say I have 2 windows:
+---++---+
+---++---+
| || |
| +-+ || |
| | A | || |
| +-+
On Leopard and later, is Directory Services still the official
solution to retrieve the list of users and groups on the OS?
Starting with Leopard, we now have the Identity Service or
Collaboration Framework but it apparently can't provide all the uid
and gid on the system, only provide meta
On Apr 26, 2009, at 4:05 PM, Michael Hall wrote:
On Apr 26, 2009, at 8:22 AM, Iceberg-Dev wrote:
Is it possible to copy a symbolic link (the symbolic link file and
not the item it references) using the FSPathCopyObjectSync API?
No valuable info was found in the documentation, the list
Is it possible to copy a symbolic link (the symbolic link file and
not the item it references) using the FSPathCopyObjectSync API?
No valuable info was found in the documentation, the list archive,
google results.
___
Cocoa-dev mailing list (Coc
On Apr 22, 2009, at 8:16 PM, Corbin Dunn wrote:
[...]
There is no way to replace the outlinecell
How could one then draw the disclosure triangle in white
Leopard has a bug with them looking too dark; that is a known
issue, and it will be fixed. There is no easy way to make them
white,
On Apr 22, 2009, at 5:50 PM, Corbin Dunn wrote:
Howdy,
On Apr 22, 2009, at 4:37 AM, Iceberg-Dev wrote:
What's the official way to replace _outlineCell and
_trackingOutlineCell in Cocoa 64-bit?
I do this for 32-bit:
@implementation NSOutlineView (PrivateCells)
- (NSButto
What's the official way to replace _outlineCell and
_trackingOutlineCell in Cocoa 64-bit?
I do this for 32-bit:
@implementation NSOutlineView (PrivateCells)
- (NSButtonCell *) outlineCell
{
return _outlineCell;
}
- (void) setOutlineCell:(NSButtonCell *) inButtonCell
{
if (_ou
On Mar 30, 2009, at 3:55 PM, Benjamin Stiglitz wrote:
I'm running the code below. I have a single NSWindow with a
checkbox and
a button. In the awakeFromNib method of the main controller, I
change the
attribute of the checkbox string. In the compute: method, I
compute the
height requested
Problem:
I'm seeing incorrect results when I try to get the height of a string
with a particular font and maximum width.
Context:
I'm running the code below. I have a single NSWindow with a checkbox
and a button. In the awakeFromNib method of the main controller, I
cha
On Mar 17, 2009, at 12:45 AM, Corbin Dunn wrote:
On Mar 16, 2009, at 4:06 PM, Iceberg-Dev wrote:
I'm trying to draw a custom grid for a table view.
I' using the code at the end of this post.
The problem is that when I scroll the tableview, some of the
horizontal lines are not
On Mar 17, 2009, at 10:16 PM, Jim Correia wrote:
On Mar 17, 2009, at 10:14 AM, Li Fumin wrote:
Hi,all.I am new to cocoa. I am reading Aaron Hillegass's Book
"Cocoa Programming for Mac OS X".
I have got some problems with challenge 2 of Chapter 20.I have a
custom NSView called BigLetterVi
I'm trying to draw a custom grid for a table view.
I' using the code at the end of this post.
The problem is that when I scroll the tableview, some of the
horizontal lines are not drawn.
I looked at different sample code on the net including the GNUStep
source code and found none that was
On Feb 22, 2009, at 7:06 PM, Bill Bumgarner wrote:
On Feb 22, 2009, at 9:59 AM, Iceberg-Dev wrote:
[...]
The current behavior makes it possible to implement architectures
where a client could take "more action" for any given
notification by registering more than once. Not
On Feb 22, 2009, at 6:39 PM, Bill Bumgarner wrote:
On Feb 22, 2009, at 8:59 AM, Iceberg-Dev wrote:
On Feb 22, 2009, at 1:37 AM, Michael Ash wrote:
On Sat, Feb 21, 2009 at 6:06 PM, Iceberg-Dev
wrote:
I just discovered something recently. If you register an
observer with the
same name
On Feb 22, 2009, at 1:37 AM, Michael Ash wrote:
On Sat, Feb 21, 2009 at 6:06 PM, Iceberg-Dev
wrote:
I just discovered something recently. If you register an observer
with the
same name/object/selector twice, you get the notification twice
when you
post it.
Isn'
I have a NSOutlineView and its highlight mode is "SourceList".
When I drag a selected item (the cell is a subclass of NSTextField
from the DargAndDropOutlineView sample code) from the list, its text
is drawn in white. This means you can't see it since most the of the
windows background are
I just discovered something recently. If you register an observer
with the same name/object/selector twice, you get the notification
twice when you post it.
Isn't the NSNotificationCenter supposed to prevent this?
___
Cocoa-dev mailing list (Cocoa-
Problem:
I would like to transform a NSString to a NSString conforming to the
C string format.
Examples:
-
toto -> toto
"toto -> \"toto
toto -> toto\ntiti
titi
My Current Solution:
I can do this using a NSMutableString and a series of call to:
-
On Dec 13, 2008, at 11:11 PM, Andre Masse wrote:
Hi,
I want to display a cell like mail's message count in a table view
but with a fixed size and centered on both axes. I've created a
NSTextFieldCell subclass and its doing fine except that it draws in
the first row only, which could mean
On Dec 13, 2008, at 12:46 PM, Kyle Sluder wrote:
3) Why all this trouble of launching executables? There's a reason
Launch Services is a public framework; use that. Don't use
-[NSWorkspace openFile:], because that's not guaranteed to open the
package in Installer.app. Instead, use LSOpenURLs
On Nov 23, 2008, at 9:44 PM, Gordon Apple wrote:
What is the best way to change to a different window? I have a
main
window nib with a lot of controllers in it. Currently the main
view is in a
scrolling window. I want to live-switch between that and a borderless
(optionally full scre
On Nov 19, 2008, at 8:09 PM, vince wrote:
Thanks for the help ...
I want to build a simple single file re-namer.
Just a window and a textField that displays the current filename,
and a
text Field and Save option for the edit. So right click a
file/"open with"
... the app runs and loads
On Nov 16, 2008, at 7:25 PM, Andre Masse wrote:
Hi all,
In a nib, I have a view (OutputView) which contains a table view
and a custom view (OutputToolbarView) which will be loaded from
another nib. This view will end up in a NSTabView. So in IB, I
placed a dummy custom view above the tab
On Nov 12, 2008, at 10:56 PM, Maggie Zhang wrote:
Hi,
Is there a way (like a notification or API) that the daemon can
figure out
when the login window is being displayed after the user logs out?
SystemConfiguration Framework.
___
Cocoa-dev m
On Nov 11, 2008, at 10:39 PM, Stephen J. Butler wrote:
On Tue, Nov 11, 2008 at 3:34 PM, Iceberg-Dev
<[EMAIL PROTECTED]> wrote:
On Nov 11, 2008, at 9:44 PM, Gregory Weston wrote:
Perhaps I'm missing something, but why not then retrieve the icon
for the
file rather than for th
On Nov 11, 2008, at 9:44 PM, Gregory Weston wrote:
Iceberg-Dev wrote:
On Nov 11, 2008, at 8:15 PM, Gregory Weston wrote:
What are you really trying to illustrate with this icon? Are you
sure the Lego® block is the right thing to show?
Standard Apple Plugins that use this icon. Yes, I
On Nov 11, 2008, at 9:39 PM, Kyle Sluder wrote:
On Tue, Nov 11, 2008 at 2:50 PM, Iceberg-Dev
<[EMAIL PROTECTED]> wrote:
Standard Apple Plugins that use this icon. Yes, I'm sure.
Are you attempting to use this icon for your own purposes, like
plugins for your own app?
No, I
eally trying to illustrate with this icon? Are you
sure the Lego® block is the right thing to show?
Standard Apple Plugins that use this icon. Yes, I'm sure.
Message d'origine
De: [EMAIL PROTECTED] de la part
de Iceberg-Dev
Date: mar. 11/11/2008 17:36
À: cocoa-dev@li
I need to get a NSImage of the generic bundle icon. (Mac OS X 10.4 or
later)
I'm currently using this:
[[NSImage alloc] initWithContentsOfFile:@"/System/Library/
CoreServices/CoreTypes.bundle/Contents/Resources/KEXT.icns"]
because:
- NSFileTypeForHFSTypeCode('BNDL') does not work. It retur
On Oct 24, 2008, at 11:51 PM, Corbin Dunn wrote:
On Oct 24, 2008, at 2:26 PM, Iceberg-Dev wrote:
On Oct 24, 2008, at 1:20 AM, Corbin Dunn wrote:
On Oct 23, 2008, at 1:38 PM, Iceberg-Dev wrote:
Solution not found in the cocoabuilder archive.
Problem:
I have a list of files
On Oct 24, 2008, at 1:20 AM, Corbin Dunn wrote:
On Oct 23, 2008, at 1:38 PM, Iceberg-Dev wrote:
Solution not found in the cocoabuilder archive.
Problem:
I have a list of files and folders.
I can add items to this list through a standard NSOpenPanel dialog.
When a folder is
Solution not found in the cocoabuilder archive.
Problem:
I have a list of files and folders.
I can add items to this list through a standard NSOpenPanel dialog.
When a folder is already in the list, I want to prevent the user from
selecting it from the NSOpenPanel dialog.
I can do
55 matches
Mail list logo