On Jul 27, 2008, at 9:56 PM, [EMAIL PROTECTED] wrote:
When attempting to use NSPopupButton and bindings to
NSArrayController, as a means to navigate an array of objects, is
there any tutorial or example out there?
I don't believe specifically for your case (ie, an NSPopUpButton),
but this
Does anybody have a means or a tool for checking for hackintoshes?
I really don't approve of such things and would like to leave clever
messages on my own software if it is run on a hackintosh.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
I know I can do awkward things with AppleScript and Folder Action
scripts,
but is there a strictly Cocoa/Objective-C way to do something like
Folder Action scripts short of a daemon?
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do
You might consider subclassing, but you might also want to read a lot
more stuff first.
Cocoa (and Carbon) text facilities are pretty deep.
There is nothing about a bug in the text system. It is just that the
text handling in Cocoa is very sophisticated and is designed to handle
things depe
In Xcode 3.1, what is the minimum necessary to create a useable
subclass of NSTextView ?
(before adding/overriding methods)
Additionally, in IB, is there any effective difference from using an
NSTextView, selecting the text view within its scroll view and
changing its class (in the inspector
Ooops, nevermind!!
I answered my own question.
When adding the class file to the project, start with the NSView
subclass template, then change it to subclass NSTextView in the .h
and in the .m either call [super drawRect:rect]; or comment out or
delete the drawRect method all together.
That w
Right now, I'm toying with using Flex/Lex in a Cocoa project.
Unfortunately, I don't see a reliable or easy way to handle NSStrings
correctly all the time with Flex.
Does anybody have any suggestions for such text handling and reliable
unicode aware regexes?
I'm seriously not interested in imp
On Fri, Aug 15, 2008 at 10:53 PM, John Joyce
<[EMAIL PROTECTED]> wrote:
Right now, I'm toying with using Flex/Lex in a Cocoa project.
Unfortunately, I don't see a reliable or easy way to handle NSStrings
correctly all the time with Flex.
Does anybody have any suggestions for su
On Aug 18, 2008, at 7:01 PM, [EMAIL PROTECTED] wrote:
to avoid the splitting problem
(c < 128) ? "%c" : "\\u%04x", c);
Not quite sure what this is doing.
I see it's checking for ASCII range
if ( c < 128 )
The conditional is obvious,
but what's the other doing exactly?
returning a char if it
On Aug 18, 2008, at 8:12 PM, Ricky Sharp wrote:
On Aug 18, 2008, at 8:01 PM, John Joyce wrote:
On Aug 18, 2008, at 7:01 PM, [EMAIL PROTECTED] wrote:
to avoid the splitting problem
(c < 128) ? "%c" : "\\u%04x", c);
Not quite sure what this is doing.
I see it
On Aug 18, 2008, at 9:23 PM, Graham Cox wrote:
On 19 Aug 2008, at 11:53 am, John Joyce wrote:
I wonder if it wouldn't make sense to just start trying to build
some new form of flex in Objective-C... so that it uses NSString
and NSMutable string ?
I'm looking at the Flex sourc
I'm having a little difficulty making sense of the right bindings here.
I'm using Core Data. No problem, simple modeling.
Entity: App
Attribute: name
Relationship: relatedFile (to many)
Entity: File
Attribute: path
Relationship: relatedApp (to one)
NSArrayControllers: Apps, Files
Both are bound
Thanks Tim!
That did it.
It makes sense, but it definitely wasn't the most intuitive.
I kept trying to set a key path in the tableView or column bindings,
which could logically make sense.
I must say that core data itself is easy, conceptually, having worked
with Rails and ActiveRecord.
It'
When dealing with applications (application bundles) by name or path,
in Cocoa, when does it make a difference whether you use
App Name.app
example:
Front Row.app
or:
/Applications/Front Row.app
versus
App Name
example:
Front Row
or:
/Applications/Front Row
This seems to be pretty important, an
On Aug 31, 2008, at 4:51 PM, [EMAIL PROTECTED] wrote:
If you're dealing with a file path, then of you of course need to
specify the extension -- it's part of the file name. You've always had
to, and always will have to.
--
Seth Willits
AppleScript certainly doesn't care about extensions
Does anybody know any official or proper way to link to the SDL
framework that is bundled in the root library in Leopard?
/Library/Frameworks/SDL.framework
is surprisingly, there!
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not
Well, thanks.
I guess I must have installed it at some point, but I don't recall
downloading it...
I wonder if it was packaged with something else...
well good to know I hadn't lost my mind in thinking that it was
strange that I had not seen that there before
___
On Sep 29, 2008, at 9:50 AM, [EMAIL PROTECTED] wrote:
Subject: How to get Safari Bookmarks in the code
To: [EMAIL PROTECTED], cocoa-dev@lists.apple.com
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1
Hi All,
I am creating a application that needs to displ
Indeed it is almost always when a mac has had the logic board
replaced/repaired.
It does occur.
Sometimes even a new batch of macs may ship without serial numbers or
even with a system profiler depicting the wrong system.
It's pretty rare, but does happen, so it may not be the best thing to
Indeed, on repair, the computer should have the old serial number.
This is why it is also located on the case, exact location depends on
the model. The only time there should ever be a new serial number is
when a Mac is outright replaced. Definitely, it is a bad idea to
depend on the serial
On 27.03.2008, at 08:24, Wesley Smith wrote:
I'm trying to make an NSWindow that takes up the entire screen
including the menu bar but is not actually a fullscreen window. I
know this is possible with Carbon, but I can't figure it out with
Cocoa. Whenever I call [NSMenu setMenuVisible:TRUE], t
Does anybody know a tutorial or example on creating custom buttons in
Cocoa?
I can certainly set an image in IB or programmatically, but how can I
determine the actual hitmask? Or even set the mouseOver type of event
for something like a rollover ?
I know I'm talking about stepping on Apple's
You may need to try a different method.
The keyboard shortcuts for taking screenshots, as well as the bundled
application Grab, are both capable of making an image that includes
flash video in a web view.
You might simply do it with AppleScript...
On Apr 14, 2008, at 2:02 PM, [EMAIL PROTECTED] wrote:
Forced Refreshing of WebKit
To force refresh a WebKit view, do the same thing web developers do:
JavaScript...?
or
- reload:
example from webview docs:
- (IBAction)reload:(id)sender
___
Cocoa
I apologize for the beginner nature of this, I must be missing
something obvious, but I cannot see it.
Archiving works fine. The data is there. I've inserted NSLogs
everywhere to no avail.
When the file is opened (unarchived) the log showed me the first
object in my array has the correct data
Looks like I found a solution... anyone please let me know if my
solution stinks. (or any of the rest of this thing!)
In the method
- (void)windowControllerDidLoadNib:(NSWindowController *) aController
I added this:
[textView setString:[[stickitNotes objectAtIndex:0] noteBody]];
#import
On Apr 21, 2008, at 6:45 AM, [EMAIL PROTECTED] wrote:
Date: Mon, 21 Apr 2008 01:16:56 -0700
From: Andrew Farmer <[EMAIL PROTECTED]>
Subject: Re: After Unarchive Object Exists, After First GUI Action,
gone...
To: John Joyce <[EMAIL PROTECTED]>
Cc: cocoa-dev@lists.apple.co
Is there a way using this tool or even programmatically, to have disk
images mount without having the collapsed toolbar?
The biggest user confusion I see is that they do not even recognize
it to be a window since most users don't even know what that capsule
shaped button does.
There is defi
Graham,
Thanks for your reply! But how can I "find the range of the word"
given
the glyph index? I just can not find an API doing so.
So I don't think this is the underlying implementation. Any comments
from others?
The range of the word is up to you to find and depends on the
language.
I'm struggling and maybe tired, but how do you set the state of and
NSMatrix with radio buttons and NSPopUpButton ?
Does it go in windowDidLoad or should it be in awakeFromNIB ?
This is in a Preference window for my app.
I'm having a hard time figuring out how to get it to set state to
reflect
(sorry for the repost, I forgot to change the subject line before)
I'm struggling and maybe tired, but how do you set the state of and
NSMatrix with radio buttons and NSPopUpButton ?
Does it go in windowDidLoad or should it be in awakeFromNIB ?
This is in a Preference window for my app.
I'm ha
What's the best method to save a document as xml?
Should NSKeyedArchiver be doing this?
My document and its objects are very simple, they can easily be
nothing more than BOOLs and NSStrings (as keys).
Other issue:
If I have an NSDictionary (composed of two NSArrays' objects,
keysArray, objec
Graham, that would be very cool to have posted here!
If nothing else, it will be in the archive for others who run into it.
(I'm in agreement about the clarity of a large number of docs...
there often seems to be a circular relationship of what you need to
understand before being able to under
Gerd,
What XCode probably does, is simply switch documents, rather than
switching windows.
But yes, you probably need to programmatically interact with your
NSDocument, NSDocumentController, NSWindowController objects.
remember the hierarchy
NSDocumentController > NSDocument (multiple distinc
separators (basically like a CSV file).
Handling the text and doing things with it is easy.
I just don't know what sort of design patterns exist for handling
additional file types.
thanks in advance
John Joyce
___
Cocoa-dev mailing
Your best bet is to purchase a used Mac that can run Tiger and use it
for test builds. There is a huge installed userbase of Tiger still,
remember it has been the longest single incarnation of OS X. (as a
result of this long life of Tiger, there are lots of affordable used
macs that can do
On Jan 24, 2009, at 8:31 PM, cocoa-dev-requ...@lists.apple.com wrote:
Not sure what you mean by "capable of running tiger". If you have a
machine
capable of running Leopard, it should be able to run tiger.
Not true. In general, any Mac requires the latest OS available at the
time it
at is best practice in this regard?
Is it something so simple as sending a unique user agent string, or is
it something else?
Regards,
John Joyce
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comme
On Feb 25, 2009, at 12:00 PM, cocoa-dev-requ...@lists.apple.com wrote:
On Wed, Feb 25, 2009 at 10:43 AM, Erik Buck
wrote:
Where did the fetish for installing every single application on the
local hard disk come from ? Isn't it insane to have 35 installed
copies of OmniGraffle using up
I've noticed that in IB 3, the Minimum and Maximum width of Toolbar
items does not stick. You can enter it, command+S to save and then
click done, and everything reverts back to 96px wide.
One can only presume this is a bug or I don't know something.
Do these things need to be set programmatic
Never mind. I have found the solution.
The "Document" window in IB 3 must be in list view.
In List, expand the tree of disclosure triangles from Toolbar
Toolbar > Toolbar Item (name if any)
With the Toolbar Item highlighted in List View, it is possible to get
the sizing to stick in IB 3's Inspe
:
I believe png are really what I'm trying to make here, they seem
to be recommended.
PNGs are not resolution independent, although they are perfectly
acceptable. Saving as a TIFF then converting it to PDF with Preview
works well for me.
Please excuse me if I missed something earlier in the
It is still buggy. Sometimes arrangements and sizes stick. Sometimes
they don't.
Use list/tree view in the "document" window of IB.
This is the easy to forget about, but very useful way to be sure
you're connecting outlets. Particularly, with toolbar items.
__
On Oct 28, 2008, at 8:42 AM, [EMAIL PROTECTED] wrote:
Turning off Auto Complete feature for NSTextField
To: cocoa-dev@lists.apple.com
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=us-ascii
Hi,
I am encountering a small problem. I am using a simple NSTextField
in my appl
Make sure you're spelling the method signature 100% correctly.
I myself have made a minor typo in a method (many times, who hasn't?)
and then spent the next 20 minutes or longer bashing my head looking
for my mistake.
Spelling counts 100%
Capitalization ( my mistake has often been NIB instead
On Oct 30, 2008, at 7:41 AM, [EMAIL PROTECTED] wrote:
Date: Thu, 30 Oct 2008 10:31:03
From: Mark Allan <[EMAIL PROTECTED]>
Subject: RE: Re: Static text over an image
To: Brandon Walkin <[EMAIL PROTECTED]>, Andre Masse
<[EMAIL PROTECTED]>
Cc: Cocoa Dev
Message-ID: <[EMAIL PROTECTED
There are many great examples of well-made cross-platform apps out
there.
One of the best examples I've seen, even in terms of code and
organization.. VLC player!
It's open source so you can see how they manage things.
___
Cocoa-dev mailing list (C
This may be a pointless and silly question, but
is Delegation faster than Notification (generally) ?
___
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
Is there anything documented on what is and is not functional when a
view becomes full screen?
I have a view that when set to be very very transparent, only appears
dark in full screen mode.
What I'd like to do is create a layer on top of the screen to apply
image filters / effects but still
Hello,
I don't think the method setControlTint is the solution I'm looking
for,
because only a few classes have such a method, NSWindow doesn't.
Maybe my
question was to general.
Is there a way without using private methods to set the complete
appearance
of an application to NSGraphiteCon
t clean or pretty, but it worked for me for what I needed. You
may need to escape spaces in file/dir names...
CoreServices is the source of a large number of icons...
sips is an osx command line tool with an undocumented ability to
convert icns files to image formats...)
# script to get ico
Has anyone had any success Binding a CoreData string value to an
NSTextView?
Everything I try seems to be flumoxed by the NSAttributedString of the
NSTextStorage backing store.
The lame thing is this: in code, it is easy to [aTextView setString:
(NSString*)aString] or [aTextView string]
So wha
On Nov 28, 2008, at 11:23 PM, [EMAIL PROTECTED] wrote:
From: "Christian Graus" <[EMAIL PROTECTED]>
Subject: Still unable to work out mouse position
To: cocoa-dev@lists.apple.com
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1
Thanks to the person who answer
Is there an easy way to take input (user or file based) at runtime and
convert unicode strings such as \u8D64 (UTF8 character) or a whole
series of these to the human-readable characters they represent?
I imagine I should be using NSScanner, but is there not some simple
function or method to
Currently, I'm using CFStringTransform to convert Java-based strings
files (JBoss .properties files) to something human-readable for
verification.
Works brilliantly.
Luckily, these files are short and this function is super fast.
This enables me to naively take all the text of a file provided
On Apr 19, 2009, at 3:42 PM, John Joyce wrote:
Currently, I'm using CFStringTransform to convert Java-based strings
files (JBoss .properties files) to something human-readable for
verification.
Works brilliantly.
Luckily, these files are short and this function is super fast.
This en
Is there an easy way to take input (user or file based) at runtime
and convert unicode strings such as \u8D64 (UTF8 character) or a
whole series of these to the human-readable characters they
represent?
I imagine I should be using NSScanner, but is there not some simple
function or method to
Depending on why you want to do this, you may want/need to try
different approaches with mini-test apps to see what your results are.
If you test with iPhoto for example, it does load the main menu nib,
but loads a different nib than the usual main window for choosing or
creating an iPhoto li
On Dec 3, 2013, at 10:23 PM, Graham Cox wrote:
> I’m seeing quite a few of these being logged:
>
>> CoreAnimation: warning, deleted thread with uncommitted CATransaction; set
>> CA_DEBUG_TRANSACTIONS=1 in environment to log backtraces.
>
> I’m not directly using Core Animation anywhere in thi
Hello all,
CGDisplayIOServicePort is documented as deprecated but available in 10.9 with
no replacement.
Is there any known, non-deprecated alternative function?
Thanks,
JJ
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post adm
So, just to follow up.
Timer approach works.
It works quite well. Thanks for recommending it.
In fact, far better than the CGEventTap approach in terms of reliability.
CGEventTaps always seem to be a bit flaky.
The NSTimer approach is very responsive and I can constrain it to just the time
when t
On Feb 15, 2014, at 6:29 AM, Leonardo wrote:
> Hi John,
> Thank you for the code. I suppose I missed something because it doesn’t work
> as expected.
> I did:
>
> I created a popUpMenu on IB and put it on the window and connected to the
> outlet popUpButton.
> I connected the popUp outlet to
On Feb 15, 2014, at 12:29 AM, Keary Suska wrote:
> On Feb 14, 2014, at 5:02 AM, Leonardo wrote:
>
>> I have filled my NSPopUpButton with menu and submenus.
>>
>> When I select a menuItem on the root menu (so, not a sub-menuItem), it
>> propery displays the menuItem selected. And when I re-clic
On Apr 9, 2014, at 2:28 PM, ChanMaxthon wrote:
> The SQLite DB thing is just like a tar archive, and if you dare to you can
> even include a cramfs driver in your code and consolidate all your resources
> into one optionally encrypted cramfs image. Every file archiving method that
> allows in
>
> On Oct 15, 2019, at 22:58, Turtle Creek Software via Cocoa-dev
> wrote:
>
> Nobody
> is every going to write a full CAD, project management or business
> accounting app in either Swift or Obj-C.
>
> TurtleSoft has a big investment in C++ source code that's full of
> construction business
The life hack for this is to have a Run Script Build Phase that just lists out
the build variables and their values.
Then you look them up in the help menu to confirm what they mean.
> On Apr 26, 2020, at 10:29, Jack Brindle via Cocoa-dev
> wrote:
>
> Before someone reminds me, be sure to u
>
> On Jun 29, 2020, at 10:53, Graham Cox via Cocoa-dev
> wrote:
>
> In the “old days”, your app could periodically call UpdateSystemActivity(
> UsrActivity ) to prevent the screensaver kicking in. This has been deprecated
> since 10.8, but the header for that function says it can be replac
201 - 267 of 267 matches
Mail list logo