Do you use the AV framework to play videos?
If so, that sets up to play sound even if you don't actually play any sound.
--
Glenn L. Austin, Computer Wizard and Race Car Driver <><
<http://www.austinsoft.com>
> On Jun 15, 2022, at 9:33 AM, Gabriel Zachmann
tion that displays your
NSOpenPanel to set your preferences.
--
Glenn L. Austin, Computer Wizard and Race Car Driver <><
<http://www.austinsoft.com>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin
I also did this (Lite and regular versions) built from the same sources. Well,
almost the same sources since the regular version didn't include IAP.
There were a lot of conditionals, and it was written before Swift was even a
line of code...
--
Glenn L. Austin, Computer Wizard and Rac
No, you can't use an "earlier" key to create a "later" value - but you can use
code to do basically the same thing.
Or, you can use the same variable that sets your CFBuildNumber to set your
CFBundleVersion.
--
Glenn L. Austin, Computer Wizard and Race Car
ARC uses the analyzers rules. I was told that if you trust the analyzer (and
follow it's rules), ARC will be fine.
I have a few pieces of code that the analyzer was unhappy with, bugs had been
submitted, but they were primarily with C++ code wrapping CF objects.
--
Glenn L. Austin, Com
Correct.
main_queue will *always* be on the main thread, but the main thread may be
running a different queue at any specific point in time.
So, if you're *not* on the main thread, throwing code over to the main queue to
execute will guarantee that it's on the main thread - but not vice-versa.
- and even then, it's likely to be based on
SwiftUI, and not C++. It's their competitive advantage, and the reason why
you're looking to *them* to do the work is so that you don't need to. The
problem is that you've waited until the train
o load.
>
> My question is, why on earth didn't Apple provide a conversion tool like
> that? It would have saved thousands of developers from having to write
> their own resource translators or do it by hand.
>
> Casey McDermott
> TurtleSoft.com
They did. It's called der
e but targets were smaller. Or
the myriad of other "issues" that make a Windows app just "feel different."
I've written apps in Qt, and it does make the cross-platform app development
process "easier" - but that's much more from a Windo
rhaps this is the way the younger
>> generation overtthrows the older? Or not, but I’m pretty sure there is no
>> compelling business argument for it.
>
>
> Holy hell, Swift isn’t perfect, but I’d rather use it over C++ a thousand
> times over.
It feels to me that
27;t release it.
>>
>
> In that case, I am wondering:
> doesn't ownership pass to the textlayer ?
> If yes, shouldn't textlayer release the path when it gets destroyed by the
> ARC?
>
> Best regards, Gabriel
>
Setting the value will retain it for i
The analyzer is great at what it does but it can't be omniscient about your
code.
When you start a method name with "make" or "new" or "create" it assumes that
you're returning a +1 value.
--
Glenn L. Austin, Computer Wizard and Race Car Driver &
that the default implementation actually checks whether the location
> is in the view and returns 0 otherwise.
>
> -Kurt
Personally, I'd check to make sure that the coordinate system for that view (or
the underlying layer) isn't resetting it's internal origin to someth
oa
application and spent a lot of time working on getting events, menus, views,
and windows to "just work." They did, but there was a *lot* of code to
implement work-arounds for the most egregious of Carbon/Cocoa interaction
issues.
--
Glenn L. Austin, Computer Wizard and Race Ca
nd and
blaming your platform vendor for your own problems isn't a good way to make
progress.
--
Glenn L. Austin, Computer Wizard and Race Car Driver <><
<http://www.austinsoft.com>
> On May 15, 2019, at 4:32 AM, Vojtěch Meluzín
> wrote:
>
> The audi
le to access,
but I don't recall if that's been turned off or not.
--
Glenn L. Austin, Computer Wizard, AustinSoft.com
> On Apr 12, 2018, at 5:03 PM, Joel Norvell wrote:
>
> Hi Cocoa-dev People,
>
> I have a sandboxing question, below. I'm wondering if it's e
Also, you don't *have* to use SecureCoding if you're using attributed strings.
Or encode/decode them using Coding, then encode/decode the resulting encoded
attributed string data using SecureCoding.
--
Glenn L. Austin, Computer Wizard, AustinSoft.com
> On Feb 17, 2018, at
t a thread will be running at exit of -[NSThread start]
-- only that it has been scheduled for execution. The lower-level pthread APIs
also don't guarantee that the thread will start executing when the thread is
created.
In reality, there's a fourth state -- scheduled -- that co
;
> error.
>
> This bug is preventing the release of a major new version of our product.
You did know that Apple updated codesigning in a way that was
backwards-compatible, but not forwards compatible?
--
Glenn L. Austin, Computer Wizard and Race Car Driver <><
<
According to the docs on Reachability (possibly lost in the mists of time...),
Reachability isn't really designed to tell you whether your net access *will*
succeed, but to give you reasons that your last access *failed.*
Yes, I was surprised too, but after adding an initial access to prime the
? as a parameter (just in case there's an error, make the parameter
an optional). Your task then calls that closure with the resulting Dictionary.
Welcome to asynchronous programming!
--
Glenn L. Austin, Computer Wizard and Race Car Driver <><
> On Dec 22, 2015, at 6:25 AM
should be able to
track those down using git, in fact there's a StackOverflow on the topic that
appears to be language-agnostic:
<http://stackoverflow.com/questions/1939635/how-can-i-detect-copy-pasted-code-using-git>
--
Glenn L. Austin, Computer Wizard and Ra
equivalent.
Not everyone has eyes to see, some have to depend upon their ears. Get your
user interface people involved as well -- they need to realize that snazzy
interface means zero to someone who can't see it. Bring blindfolds if
necessary.
--
Glenn L. Austin, Computer Wizard and Race
resignFirstResponder] in
> viewDidAppear, but this seems to have no effect.
>
>
> Gerriet.
File a radar. That sounds like a bug but it won't get fixed without a radar to
track it.
--
Glenn L. Austin, Computer Wizard and Race Car Driver <><
<http://www.a
ceOrientationMaskAll, but for
iPhone it's UIInterfaceOrientationMaskAllButUpsideDown. If you're not
overriding that, you won't get upside down on the iPhone.
--
Glenn L. Austin, Computer Wizard and Race Car Driver <><
<http://www.austinsoft.com>
__
t). Remember that, and strong/weak become far easier to
understand. Of course, all of that assumes that the necessary data for the can
be easily re-constructed on demand. And like all generalizations, this doesn't
cover all of the use cases, but it may help address
can lead to hard-to-diagnose problems.
While it's not *necessarily* a bad idea to have objects allocated at launch
time, it does lead to slower launch times, lack of control over initialization
(and destruction) order, and often significant increases in memory usage at
launch time.
--
able for general
>> purpose use in iOS 8? Is there a limitation to how much space an app can use
>> in its sandbox? I presume a database would necessarily need to reside in
>> /Documents/...
>>
>> -Carl
>>
--
Glenn L. Austin, Comput
r all, why initialize something that you'll never use?
--
Glenn L. Austin, Computer Wizard and Race Car Driver <><
<http://www.austinsoft.com>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin r
atch the old
store's WAL file...
--
Glenn L. Austin, Computer Wizard and Race Car Driver <><
<http://www.austin-soft.com>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests o
ize method
>> before the class is used for the first at runtime.
>
>
> What is it that you are actually trying to achieve by doing this?
Especially since *every* class that derives from NSObject will have an
+initialize method...
--
Glenn L. Austin, Compute
e full 320 pixels in width and still have the disclosure
indicator. Well, you can, but you won't be happy with the result (and likely
won't get it past Apple's reviewers).
--
Glenn L. Austin, Computer Wizard and Race Car Driver <><
<http://www.austin-soft.com>
nd keep going back until you find one that doesn't have the high-bit
set, and that's the last character of the previous sequence. Of course, that
"go back" doesn't mean anything if you're already at the first byte in your
string...
--
Glenn L. Austin, Computer Wizard and R
. It will fail in many cases, most
> notably: read-only file systems and App Sandbox.
Normally for shared preference or data you would write to a shared file in
/Library/Application Support/companyname/filename, but you have to take special
care if you're sandboxing your app.
--
Glen
t was used that didn't point out a significant
architectural flaw that was the cause for many user tech support calls about
our product. Fixing those flaws resolved the issue for using "afterDelay" --
and significantly improved the products' sta
;
If you mean that the screen order changes? That's an option in the Mission
Control preferences pane ("Automatically rearrange spaces based on most recent
use"). If you mean by the order of the applications on each screen, then that
could be an issue.
--
Glenn L. Austin, C
't want to go back an re-code all of their legacy code to use the new
bit-length-defined types, and because the C language "allowed" it (sizeof(char)
<= sizeof(short) <= sizeof(int) <= sizeof(long)), the standards body "froze"
int as a 32-bit value.
--
Glenn
e sharing seems to be far from seamless.
>
> I'm hoping the collective brain trust on this list can point to me some
> possibilities I have not been exposed to that might serve my needs.
Networking and Bonjour?
--
Glenn L. Austin, Computer Wizard and Race Car Driver <>
"select a file" from a web page, since there are no files to upload from within
any iOS web browser.
--
Glenn L. Austin, Computer Wizard and Race Car Driver <><
"Where there's breath, there's hope!"
<http://www.austin-soft.com>
_
ally
> use a one line executable file with a gcc compile. I'll try out the clang
> mentioned.
> I did have to request command line tools separately with the last Xcode
> install as I remember.
Plus, you can only build Intel code in Xcode 4 -- no PPC.
--
Glenn
On May 14, 2012, at 8:43 AM, Ken Thomases wrote:
> On May 14, 2012, at 8:52 AM, Glenn L. Austin wrote:
>
>> Read up on Grand Central Dispatch. It can manage pretty much all of the
>> hard work of parallelizing code, including replacing synchronization
>> pri
can manage pretty much all of the hard
work of parallelizing code, including replacing synchronization primitives like
Mutexes and CriticalRegions (just access those sections on a single GCD queue
with dispatch_sync, and you're guaranteed synchronous access).
--
Glenn L. Austin, Computer Wizard
On Apr 19, 2012, at 10:43 AM, The Rhythmic wrote:
> Now, within a method, am setting this value to the date from a DatePicker
> as:
>
> *fromDate = [datePicker date];*
>From that code, you're getting an autoreleased object from datePicker. If you
>want to keep it around, you need to retain
On Mar 26, 2012, at 4:13 PM, Jens Alfke wrote:
> [I posted this to macnetworkprog earlier today, but 3 hours later it hasn’t
> shown up yet, so I’m trying here too.]
>
> I’m using an async NSInputStream to read from a TCP socket. Given a good
> connection, the data comes in faster than an iOS d
nes of sudo -- the user can acquire permissions to do admin
operations even if the user isn't currently an administrator.
--
Glenn L. Austin, Computer Wizard and Race Car Driver <><
"Where there's breath, there's
ugh.
That function is already implemented on every machine that support networking
-- including Mac OS X. You don't need to implement it yourself -- just
#include
Do a man ntohl for more info.
--
Glenn L. Austin, Computer Wizard and Race Car Driver <><
On Nov 11, 2011, at 1:26 PM, Conrad Shultz wrote:
> On 11/11/11 1:21 PM, Glenn L. Austin wrote:
>> Set your iOS Deployment Target to iOS 4.3 and build ARMv7.
>
> I don't think the OP said that the app should be version restricted.
> Why target 4.3?
4.3 only runs on AR
else doing.
Set your iOS Deployment Target to iOS 4.3 and build ARMv7.
--
Glenn L. Austin, Computer Wizard and Race Car Driver <><
"Where there's breath, there's hope!"
<http://www.austin-soft.com>
___
Coco
hen you return to the event loop.
I know that I'm paying a performance penalty for all of those additional
autorelease pools, but at the same time my apps continue to run even though I'm
working with extremely large images and consuming multiple megabytes of memory.
--
Glenn L.
me I'm -autoreleasing it a second time.
>
> Is this a bug?
--
Glenn L. Austin, Computer Wizard and Race Car Driver <><
"Where there's breath, there's hope!"
<http://www.austin-soft.com>
___
Cocoa-
don't be surprised if sometime in the future
you are debugging a strange compile-time error. (I've been 'bit' by this a few
times in my development).
--
Glenn L. Austin, Computer Wizard and Race Car Driver <><
"Where there's breath, there's ho
t, html, rtf, rtfd,
>> doc, docx, wordml, odt, webarchive.
>> I should file a Radar to add Markdown and Textile to that list ;-)
--
Glenn L. Austin, Computer Wizard and Race Car Driver <><
"Where there's breath, there's hope!"
<http://www
On Sep 5, 2011, at 11:44 PM, Rimas M. wrote:
>
>
> On Mon, Aug 29, 2011 at 6:40 PM, Glenn L. Austin
> wrote:
> <...>
> Also, just because you're using an image for the menu item doesn't mean that
> you can't set the title of the item.
>
>
ith the proper menu
background for the menu item content.
They are NOT using AttributedString.
--
Glenn L. Austin, Computer Wizard and Race Car Driver <><
<http://www.austin-soft.com>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.
If you use text drawing, your first click will be slow. That's the penalty of
loading each font.
That's why -- at least internally -- the menu code caches the image of each
item, so that the second and subsequent displays of the menu will be quick.
You really have two solutions -- pre-image eac
On Aug 26, 2011, at 9:40 PM, Brian Norh wrote:
> Hi.
>
> I'm working against an API which looks like this:
>
> - (void)performOperationWithBlock:(void (^)(void))block
>
> The call returns directly and the execution continues. At some point
> the block is eventually called. How would I do to blo
nt. You could use the
comparison of strlen() and [data length] to make sure that you're not passing a
NULL.
--
Glenn L. Austin, Computer Wizard and Race Car Driver <><
<http://www.austin-soft.com>
___
Cocoa-dev mailing lis
ion date, and can debug the
actual problem with that source handy.
--
Glenn L. Austin, Computer Wizard and Race Car Driver <><
<http://www.austin-soft.com>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do no
History: I've worked on both the AppleWorks and the Microsoft Office 2011 font
menus in my career.)
--
Glenn L. Austin, Computer Wizard and Race Car Driver <><
<http://www.austin-soft.com>
Looking for more opportunities...___
C
VC]
> movieIsPaused]);
I agree that it is unnecessary, but a lot of the warnings that are now provided
are unnecessary but promote better and less ambiguous coding practices.
--
Glenn L. Austin, Computer Wizard and Race Car Driver <><
<http://www.austin-soft.com>
_
On Jul 18, 2011, at 11:41 PM, George Nachman wrote:
> I've had a few users complain that if my app calls NSBeep() many times in
> quick succession the program blocks until each of the beeps has played
> sequentially. I can't reproduce this: on my system, NSBeep() returns
> immediately and a subseq
On May 10, 2011, at 9:14 PM, Conrad Shultz wrote:
> Your app delegate gets various notifications/messages that it can use to
> perform appropriate actions at the various points in the life cycle, and
> it sounds like you might need to do this. These are discussed in detail
> in the section "The
matter *why* the window is being
closed, only that it's being closed. If there's supposed to be a difference
when your code closes the window, then your code is going to have to do the
extra work to notify the receiver.
--
Glenn L. Austin, Computer Wizard and Race Car Driver
om Y while using a timer.
>
> v = range * sin(t)
>
> --Graham
Just remember that the argument to sin() must be in radians. To convert
degrees to radians, radians = degrees * kPI / 180.0;
--
Glenn L. Austin, Computer Wizard and Race Car Dr
's now a single message to move the window to a "centered"
position.
--
Glenn L. Austin, Computer Wizard and Race Car Driver <><
<http://www.austin-soft.com>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Pl
v. 2010 à 19:19, "Glenn L. Austin" a écrit :
>
>> Zombie told us nothing. The project just didn't crash any more -- it only
>> told us that the autoreleased object was a zombie. Gee, we already knew
>> that...
If Instruments didn't crash on launch of
separated from the "offending" autorelease pool drain in both time and code
distance.
--
Glenn L. Austin, Computer Wizard and Race Car Driver <><
<http://www.austin-soft.com>
___
Cocoa-dev mailing list (Cocoa-dev@lists.ap
ct with programmers of varying Cocoa skill
levels.
--
Glenn L. Austin, Computer Wizard and Race Car Driver <><
<http://www.austin-soft.com>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin reque
w could I stop the thread while it is running ?
--
Glenn L. Austin, Computer Wizard and Race Car Driver <><
<http://www.austin-soft.com>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests
view team, the application crashes at startup
> when no wifi network is available on the Touch.
> The application runs correctly on the iPhone.
--
Glenn L. Austin, Computer Wizard and Race Car Driver <><
<http://www.austin-soft.com>
___
about a meter
> or more? or is it hyper accurate as in centimeters? anyone know?
--
Glenn L. Austin, Computer Wizard and Race Car Driver <><
<http://www.austin-soft.com>
___
Cocoa-dev mailing list (Cocoa-dev@lists.appl
On Sep 20, 2009, at 3:00 AM, Ken J. wrote:
So I checked the folder permission to find out it's:
drwxrwxrwx 67 root admin 2278 Sep 20 02:35 Preferences
Mine is:
drwxrwxr-x 113 root admin 3842 Sep 21 08:10 /Library/Preferences
--
Glenn L. Austin, Computer Wizard and Race Car D
doesn't seem to work.
Yes -- the problem is that you're using GCC 4.2. You need to change
the C/C++/Obj-C compiler to GCC 4.0.
--
Glenn L. Austin, Computer Wizard and Race Car Driver <><
<http://www.austin-soft.com>
_
that).
There are no errors or warnings in the code ... and as I said, the
app works fine on my machine.
why could that be?
Do you have ZeroLink enabled? That causes many of the "works on my
machine, but not on another machine" issues...
--
Glenn L. Austin, Computer Wizard an
On Apr 22, 2009, at 9:20 AM, Benjamin Dobson wrote:
On 22 Apr 2009, at 17:06:10, Chris Williams wrote:
So you'd rather the user sits there wondering if this huge, highly
complex
application (like any Office or Adobe app) that takes 10-15 seconds
to load,
even longer on a slow laptop, is ac
Well, an "acceptable" URL would be something like "smb://serveraddr/sharename/path/to/file
" to be valid.
The original address was a Windows-only server/file (NMB) path. It's
not a URL, nor it is even close to anything that is "working." It is
no different than C:\\path\to\file.
On Feb 2
On Jan 23, 2009, at 7:10 AM, fc...@dialup4less.com wrote:
I would like to:
1) Encrypt/Encode a SQLite DB file from the command line (or via an
application) and
2) De-Encrypt/Decode the same SQLite DB from within Cocoa/iPhone via
a key of some sort.
Scenario:
I'm developing a game using d
On Dec 21, 2008, at 9:43 AM, Michael Ash wrote:
On Sun, Dec 21, 2008 at 11:49 AM, Scott Ribe > wrote:
I guess what Mike is proposing is that redrawing in response to
setNeedsDisplay is only deferred until the end of handling the
current
event? (And therefore only improves things when there are
Porting to the Mac isn't simply a process of "this API on the Mac kind
of does what that API does on Windows."
What exactly is this code trying to do?
On Nov 2, 2008, at 9:23 PM, Rakesh Singhal wrote:
Hi all
I am porting a project from Windows (using Win32 APIs) to Mac OS.
There is
follow
According to another list, it's likely a bug.
On Nov 2, 2008, at 8:52 PM, Dave DeLong wrote:
Does anyone have any ideas on how to do this?
Dave
On 24 Oct, 2008, at 9:18 PM, Dave DeLong wrote:
Hi everyone,
At the top of every NSMenu I can find, with one exception (which I
will get to), th
On Jul 18, 2008, at 8:58 PM, Rick Mann wrote:
Where is the description of the dot syntax? The top of the Obj-C 2.0
docs (Properties section) refers you "Dot Syntax." A search of ADC
turns up the first hit:
Look for Graphviz.
___
Cocoa-dev mailin
On Jul 18, 2008, at 9:08 PM, Rick Mann wrote:
On Jul 18, 2008, at 21:05:33, Glenn L. Austin wrote:
On Jul 18, 2008, at 8:58 PM, Rick Mann wrote:
Where is the description of the dot syntax? The top of the Obj-C
2.0 docs (Properties section) refers you "Dot Syntax." A search of
82 matches
Mail list logo