x27;ll see what
happens.)
--
Seth Willits
On Aug 12, 2008, at 4:08 AM, [EMAIL PROTECTED] wrote:
Seems to me that this might be more to do with the responder chain.
The NSTextField will update its stringValue when it resigns as first
responder.
An NSButton does not accept first responde
know an alternative?
You'll have to write your own. If it's not customizable, it's very
very easy to do.
--
Seth Willits
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comme
.
Hmm... it's very hard to tell, but I believe there must be a fast
way that already exists.
I'm sure he meant a fast *public* way to do it.
Using the private APIs / the method that Rob showed is perfectly fast.
--
Seth Willits
__
xtent, and inputTime. I also used class-dump to check for any
private methods, but there aren't any. Has anybody had any experience
with this?
--
Seth Willits
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post ad
That doesn't help with rotating up or down.
--
Seth Willits
On Aug 25, 2008, at 11:40 PM, Michael Vannorsdel wrote:
Just start at inputTime 1.0 and increment down to 0.0. This will
rotate opposite from 0.0 to 1.0.
On Aug 25, 2008, at 11:42 PM, Seth Willits
ocoaSlides demo; Find the
location where a view *will* be after animating, start the animation
and immediately click. You'll get a mouseDown event (and see the
pointillize effect) for the view before it's under the mouse.
Seems like a bug to me. Am I wron
el object to contain
the string, just to use bindings here? There's absolutely _no_ other
data I need to associate with the string, so it'd really be pointless
otherwise.
Thanks,
--
Seth Willits
___
Cocoa-dev mailing list (Cocoa-dev@l
are overriding dataCellForRow:,
the checkbox cell should be used for every row. I suspect there is
more to what you are doing than you've told us.
--
Seth Willits
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post
rning 10.3 / 10.4 / 10.5 ?
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
___
Cocoa-dev mai
s a convenience thing assuming that
you're going to create several mini controls in a row.
--
Seth Willits
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Co
/dmgcanvas/
--
Seth Willits
___
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
till documented though.
--
Seth Willits
___
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/Unsubscr
wo options to ensure correct installation would be to:
a) use a package installer
b) put the plugins and docs inside of your application's bundle.
--
Seth Willits
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin reque
o see if they're actually supposed to
be created.
*shrugs*
Hope that helps :)
--
Seth Willits
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the mod
's view transition settings is:
don't bother. They either don't work at all or are somehow incomplete/
broken. Others (at least one Apple engineer included) have testified
to this as well.
--
Seth Willits
___
Cocoa-dev mailing li
On Sep 10, 2008, at 1:04 AM, Markus Spoettl wrote:
On Sep 9, 2008, at 9:36 PM, Seth Willits wrote:
Surely adding 330 items to an array shouldn't take a minute on any
machine from this century. I think your code is doing something
you're not realizing. You could:
a) have a meth
document they want to
create, or is there something in the framework which is supposed to
do that?
You need to write your own.
--
Seth Willits
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator
nib you specify
(by name) for you.
http://developer.apple.com/documentation/Cocoa/Conceptual/LoadingResources/CocoaNibs/chapter_3_section_6.html
--
Seth Willits
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin reques
a, so I so far have stuck to just
plain old school code. I could save two or three lines if I used
bindings in a few places, but eh... who's counting?
--
Seth Willits
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post
t
to the controller, then unpack the from the dictionary from the
controller later on? It's easier to just to set and grab them
individually.
--
Seth Willits
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post ad
Default then you don't read take on
the settings from the dialog.
--
Seth Willits
___
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 c
to a model, and essentially
three lines of code to begin, commit, or revert changes.
It's taken me until to even quite understand what you're asking.
Hopefully this helps or triggers a thought. :-)
--
Seth Willits
___
Cocoa-dev maili
as selecting a
target from the popup, checking "bind", and typing the name of the
value in the dictionary. I'd really encourage you to take 15 minutes
to experiment with it.
--
Seth Willits
___
Cocoa-dev mailing list (Cocoa-dev@li
of them are in
the responder chain. You can add them to the chain after the window
controller yourself.
Here is a good way to do that:
http://katidev.com/blog/2008/04/09/nsviewcontroller-the-new-c-in-mvc-pt-1-of-3/
--
Seth Willits
___
Coc
quitting your program. If dealloc is not called when
it should be (in a non-garbage-collected app), then you've probably
leaked it. (You may also just not realize that it really shouldn't
have been called yet ;-)
--
Seth Willits
___
r and fixing leaks that occur during regular
usage before application termination.
--
Seth Willits
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderato
Any idea what the gray tab in the corner signifies? If you click on
the color well and set the value, it always disappears.
http://www.sethwillits.com/temp/NSColorWellCorner.jpg
--
Seth Willits
___
Cocoa-dev mailing list (Cocoa-dev
n the Device space.
Use the Calibrated space to make it go away.
(from http://www.cocoadev.com/index.pl?NSColorWell )
Thanks!
--
Seth Willits
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or mode
tinct arrays with the same elements are "equal". You use isEqual:
to test for that.
isEqualTo: is purely a synonym.
--
Seth Willits
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator
uried. I didn't know
about that.
I'd like to see it work like switching between segments in a segmented
control. There's a popup in the inspector that lets you pick one.
--
Seth Willits
___
Cocoa-dev mailing list (Cocoa-dev@l
On Mar 12, 2008, at 6:24 PM, Michael Gregoire wrote:
Though tutorials and guides are severely lacking in the Objective-C
2.0 arena.
Obj-C 2.0 takes 20 minutes to learn. There's not that much different,
and the docs cover it pretty well.
--
Seth Wi
indow background has
changed, and that change is automatically picked up by
PSMTabBarControl. Your code may be lighter than PSMTabBarControl, but
you should take another look at it, because it does have the same
appearance.
--
Seth Willits
__
hen you'd still have to figure out GC. I haven't yet used it for
anything.
Good luck, and may the force be with you,
I need sleep...
--
Seth Willits
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin reque
Howdy,
I'm writing an internal tool, and NSMailDelivery looked to fit the
bill to automatically send emails behind the scenes, but it was
deprecated in 10.5. Is there a replacement at all for it? All I need
is a way to send emails from an smtp server.
Thanks,
--
Seth Wi
mageFormat.value" which entails a certain organization that
seems to be too far off from what I need.
Is there a way to do what I want to do?
--
Seth Willits
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not
ould I use applicationDidChangeScreenParameters and reposition the
window, or is there an option to make my window not care about the
Dock appearing?
It'd probably be easier to just override setFrame in a window subclass
and make sure it's always what it should be. Just a thought.
7;re crazy. :)
--
Seth Willits
___
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 Su
dictionary as the value, which isn't what I want. It's kinda
annoying. A value transformer seems like a good idea. I haven't looked
into them yet, but I think there's a couple places where some custom
ones could be handy. I'll look i
s having a whole bunch of glue code
(major ick).
Thanks,
--
Seth Willits
___
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)list
On Apr 15, 2008, at 12:27 AM, Seth Willits wrote:
Aloha,
I'm sorry if you read any further than this line! :)
It was giving me an error because I didn't retain the newly created
instance, not because I released the old instance. I *knew* it should
have worked this way. :)
n, so I need to binding to update the value in the model. I
can change first responder manually to trigger the update, but is
there a proper way to poke the binding to update?
--
Seth Willits
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
On Apr 16, 2008, at 4:26 PM, Seth Willits wrote:
I have a text view bound to a key path through an array controller's
selectedObject, and it doesn't update the value immediately when
changing the text, it only updates the model if the text view loses
first responder. I need
Greetings Cocoa Heads,
Off topic, I admit, but y'all being fellow Cocoa developers, and
having specifically written the app for us, I thought it fitting to
post here.
http://www.araelium.com/dmgcanvas/
Short and sweet,
--
Seth Wi
u can't have license
agreements in there.) Fighting Finder to script the appearance of the
disk image is a headache on it's own; I'd rather skip the nonsense to
try to force Finder into something it doesn't want to do at all.
Thanks for all of the res
and you ask
more about this on the Xcode list before Scott throws down the law
since this isn't directly related to Cocoa.
--
Seth Willits
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator
m at 32x32, much too large. Manually resizing to
16x16 works well, but I don't want to hardcode that image size.
Why not? If you want them to be 16x16 (which you do) you kinda have to
set them to be 16x16...
--
Seth Willits
___
Cocoa-d
On May 7, 2008, at 1:50 PM, Mr. Gecko wrote:
Hello I am needing to find out how to do an 8 digit random number in
cocoa.
If there are no way than I can use random number from 1000 to
in applescript and receive the retuned value.
Use rand()?
--
Seth Willits
On May 7, 2008, at 2:02 PM, Jean-Daniel Dupas wrote:
Le 7 mai 08 à 22:54, Seth Willits a écrit :
On May 7, 2008, at 1:50 PM, Mr. Gecko wrote:
Hello I am needing to find out how to do an 8 digit random number
in cocoa.
If there are no way than I can use random number from 1000 to
lly rather not have to
pull frames out of the movie and manually draw them myself or
something like that.)
--
Seth Willits
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the lis
anks again,
(I'm glad the mailing lists are working again!)
--
Seth Willits
On Jan 6, 2009, at 7:56 AM, Matt Long wrote:
Seth,
Synchronization is done at a lower level. You need to get the movie
time base of the movie you want to be the master and then set the
master time base for the
Do what?!
Just simply call setView:
--
Seth Willits
___
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
plain-text?
Short of allowing *any* file to be selected by this open panel, the
only thing I can think to do is create a delegate which checks
kMDItemContentType for the file to see if it's "Plain text". I really
would rather not.
Can anyone offer some helpful tips?
Thanks
?key1=valueNoSpaces&key2=value+with+space&key3=value+with
%0Apercent%0Aescapes
Does anyone know of a couple of methods that can simply grab the
action and KV pairs decoded without a lot of hassle?
Thanks,
--
Seth Willits
___
Cocoa-dev
nts
always be firing during a modal session?
--
Seth Willits
___
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
He
On Jan 28, 2009, at 9:50 PM, Seth Willits wrote:
Does anyone know what's really going on here? Should AppleEvents
always be firing during a modal session?
Call me a fool on this one. I didn't realize my AppleEvent handler was
being set up after the call to runModal, thus it n
seems to be the Finder's catch all. Try this: 'touch /
foo', then Get Info on that file. It's "Plain Text".
Interestingly, I have files containing oodles of binary which are also
marked as Plain text. I guess Spotlight has some identity iss
that.
--
Seth Willits
___
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
l may be bugs. If you use it, and find
any bugs, let me know.
Awesome! I'm far too lazy (at least for this purpose) to do proper
parsing so I just banged out a quick cheesey few lines which works for
my needs. This is great though. I'm keeping it around.
the active one right before I activate,
not after I deactivate.
Any ideas?
--
Seth Willits
___
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
ng so that they won't become key
unless required. My only guess is that's the issue.
--
Seth Willits
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact th
PITA. The search algorithm is lame.
Searching for "GetFrontProcess" and "Neuburg", for example, should
*surely* show this thread at the top. Does it? No. It's not even
anywhere in the top 100 results. What kind of search is that?
--
Seth Willits
_
m the documentation, there isn't a difference. Am I
misreading something important?
--
Seth Willits
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the mod
to know at this point
but I thought it might be worth mentioning ;-)
Actually, it is very relevant to what I am doing. :-)
Thanks all,
--
Seth Willits
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or
o the next chunk.
--
Seth Willits
___
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/U
then do byte-for-byte comparison on the file to find
occurrences of that delimiter.
--
Seth Willits
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact th
hat as well, and honestly I'm not 100% sure.
I can see it being plausible or very likely to be problem and I'm not
sure which is correct. Oops. But it should be universally easy to deal
with by checking the MSB on the preceding byte if it's not fix
tab inside of a view in the window, and size and position the tab
accordingly.
--
Seth Willits
___
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
re? I have done many google searches
and read through the archives. Looks like many have asked, but an
exact answer is hard to come by.
Just resize the window?
If you need to hide the dock you can use SetSystemUIMode
--
Seth Willits
___
Cocoa-dev ma
oneShot NO, then the window controller is deallocated, but the views
in the window are still alive, and it tries to draw those views,
sending table view data source methods to the deallocated window
controller.
KABOOM.
--
Seth Willits
bar needs
to go, although what we replace it with, I have no idea at this
stage.
You could post a link to some screenshots and get some feedback.
--
Seth Willits
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post ad
rching and the only thing that looks promising
is NSDistributedNotificationCenter.
It's not the same thing. Notifications are not Events.
--
Seth Willits
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin request
http://www.sethwillits.com/temp/OneShotDocTest.zip
As is, launch the app, close the window using Cmd-W and it will crash.
(Clicking on the close widget works fine.)
Go into the nib and change One Shot to YES and it will not not crash.
--
Seth Willits
___
ted after the window controller instead of before, such
as when setOneShot:YES.
The behavior of non-one shot windows is obviously not clear.
--
Seth Willits
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moder
ing about those circumstances, it only means that you need to not
write this kind of bug.
Except if you had spent two hours trying to figure out what was going
on, you'd be happy to have read a thread warning that a tiny
inconspicuous checkbox does more than the documentation leads on to. ;-
tree trying to use the command line app to do it? Perhaps I should be
using a yet-to-be-discovered library instead.
Thanks,
--
Seth Willits
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comm
hain nag dialog. (Actually, it's more for myself since I rebuild
the app several times a day and it nags me each time :p )
So do I just create self-signed certificate and select it in the Xcode
build settings and that's it? Everything is as desirable and as
functional as nee
others do?
Most apps use just the name, but I've never liked that and I support
your idea of using the bundle identifier. Makes a lot of sense.
I use my apps' names, but other companies will create a company folder
with subfolders in it for each app. iWork does this, for example
Or just simply don't have
anything in the dictionary.)
--
Seth Willits
___
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)lis
rly:
"The NSNull class defines a singleton object used to represent null
values in collection objects (which don’t allow nil values)."
You can't stick nil into dictionaries and arrays. So either you stick
an empty string, an NSNumber wit
ed as a
marker for the variable argument list to say "this is the end of the
list." It's not actually inserted into the dictionary at all. Why it's
required is really beyond me, but it's simply an Obj-C syntax thing.
--
Seth Willits
__
On Oct 11, 2008, at 11:47 AM, Michael Ash wrote:
On Sat, Oct 11, 2008 at 1:57 PM, Seth Willits <[EMAIL PROTECTED]>
wrote:
If it's what I think you're talking about then: No, nil is used as
a marker
for the variable argument list to say "this is the end of the
lis
On Nov 13, 2008, at 9:26 PM, Bridger Maxwell wrote:
However, values would be changed quite often.
How often? 60 times per second often? Once per second often? Every
minute, often?
You'll need to calculate the amount of data you're expecting to
transfer, worst case.
--
Se
On Nov 13, 2008, at 9:26 PM, Bridger Maxwell wrote:
However, values would be changed quite often.
How often? 60 times per second often? Once per second often? Every
minute, often?
You'll need to calculate the amount of data you're expecting to
transfer, worst case.
--
Se
aw data in one big package, they'll probably be roughly
equivalent. If you're actually sending a lot of little objects
separately, DO might not be up to the task.
If you're as close to being done as it sounds like you are, mi
self-respecting computer network is gigabit these
day ;-)
--
Seth Willits
___
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-admi
d and use a condition to know when it's actually happened. The
latter seems pretty reasonable. Anything else? Anyone have solid
experience with this situation?
I find it odd the docs don't mention this, but maybe it's one of those
things I'm "just suppose
ht. Looks like I did. :)
Cheerio,
--
Seth Willits
___
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/Upda
these and see if anything stands out?
I really have no idea what to do. ;'-(
--
Seth Willits
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators
completely boggling my mind.
The only thing that worked was to create an implementation of
setSuggestedDiskImageName: and manually call will/didChangeValueForKey.
What on Earth can I do?
--
Seth Willits
___
Cocoa-dev mailing list (Cocoa-dev@l
quot; %@", [sc isSelectedForSegment:2] ? @"YES" : @"NO");
Before:
1
NO
YES
NO
After:
1
NO
NO
NO
selectedSegment: "[Returns t]he index of the currently selected
segment, or -1 if no segment is selected."
No segment is selected so sel
Filed. #6787552. Thanks.
--
Seth Willits
On Apr 13, 2009, at 4:17 PM, Peter Ammon wrote:
This looks like a bug. I appreciate your taking the time to check
and hopefully to file it.
-Peter
On Apr 12, 2009, at 1:22 PM, Seth Willits wrote:
I need a sanity check before I file a bug
e end notifications?
--
Seth Willits
___
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
finished, is spazzed because of stack corruption?
I'm wondering if this could be a potential clue for some patterns that
I should be learning.
--
Seth Willits
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin r
read_detach() (or by creating them with an
attribute set by pthread_attr_setdetachstate()), or call
pthread_join(). If you don't do either, then you'll end up with
zombie threads in the same way that you do with processes.
Hmm. Nope. I'm only ever using NSThreads. Thanks
they don't have any backtrace when
they're not executing something.
A. That's all it is then. I figured every thread would have at
least one entry.
Thanks Greg,
--
Seth Willits
___
Cocoa-dev mailing list (Cocoa-dev@lists.
)print;
{
dotheprint(self);
}
@end
--
Seth Willits
___
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.
know when you've launched and when you will quit.
--
Seth Willits
___
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.
n it thoroughly. :-)
Anyway, if the non-protected access is a known/common/public behavior
- great! I wish I knew about this ages ago.
--
Seth Willits
On Apr 21, 2009, at 7:50 PM, Luke the Hiesterman wrote:
It's done all the time. You should read up on Objective-C 2.0
properties, though, to
d then my code wouldn't be future-
proof if an encoding is added.
Can anyone offer some insight into how I could dynamically determine
an encoding's characteristics? Or maybe I should just hard code it/do
it by hand because there are really very few cases to handle.
Thanks,
--
n't
even think of it this time.
Heh. Well shoot. Nevermind. :-)
Thanks,
--
Seth Willits
___
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 coco
401 - 500 of 601 matches
Mail list logo